Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
add_headers_fetcher.h
Go to the documentation of this file.
1 // Copyright 2012 Google Inc.
16 
17 #ifndef PAGESPEED_SYSTEM_ADD_HEADERS_FETCHER_H_
18 #define PAGESPEED_SYSTEM_ADD_HEADERS_FETCHER_H_
19 
23 
24 namespace net_instaweb {
25 
26 class AsyncFetch;
27 class RewriteOptions;
28 class MessageHandler;
29 
34  public:
36  AddHeadersFetcher(const RewriteOptions* options,
37  UrlAsyncFetcher* backend_fetcher);
38  virtual ~AddHeadersFetcher();
39 
40  virtual bool SupportsHttps() const {
41  return backend_fetcher_->SupportsHttps();
42  }
43 
44  virtual void Fetch(const GoogleString& url,
45  MessageHandler* message_handler,
46  AsyncFetch* callback);
47 
48  private:
49  const RewriteOptions* const options_;
50  UrlAsyncFetcher* const backend_fetcher_;
51 
52 
53 };
54 
55 }
56 
57 #endif
58 
virtual void Fetch(const GoogleString &url, MessageHandler *message_handler, AsyncFetch *callback)
virtual bool SupportsHttps() const
Definition: add_headers_fetcher.h:40
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: async_fetch.h:53
Definition: add_headers_fetcher.h:33
AddHeadersFetcher(const RewriteOptions *options, UrlAsyncFetcher *backend_fetcher)
Caller keeps ownership of backend_fetcher.
Definition: message_handler.h:39
Definition: rewrite_options.h:84
virtual bool SupportsHttps() const
Definition: url_async_fetcher.h:54
Definition: url_async_fetcher.h:33