18 #ifndef PAGESPEED_APACHE_FETCH_H_
19 #define PAGESPEED_APACHE_FETCH_H_
22 #include "net/instaweb/http/public/request_context.h"
31 #include "pagespeed/kernel/base/thread_annotations.h"
36 namespace net_instaweb {
75 void Wait() LOCKS_EXCLUDED(scheduler_->mutex());
77 bool status_ok()
const {
return status_ok_; }
80 LOCKS_EXCLUDED(scheduler_->mutex());
88 virtual void HandleHeadersComplete() LOCKS_EXCLUDED(scheduler_->mutex());
89 virtual
void HandleDone(
bool success) LOCKS_EXCLUDED(scheduler_->mutex());
91 LOCKS_EXCLUDED(scheduler_->mutex());
92 virtual
bool HandleWrite(const StringPiece& sp,
MessageHandler* handler)
93 LOCKS_EXCLUDED(scheduler_->mutex());
96 void SendOutHeaders();
104 bool done_ GUARDED_BY(scheduler_->mutex());
107 bool squelch_output_;
Definition: apache_fetch.h:44
ApacheFetch(const GoogleString &mapped_url, StringPiece debug_info, RewriteDriver *driver, ApacheWriter *apache_writer, RequestHeaders *request_headers, const RequestContextPtr &request_context, const RewriteOptions *options, MessageHandler *handler)
virtual const RequestContextPtr & request_context()
Definition: async_fetch.h:151
void set_handle_error(bool x)
Definition: apache_fetch.h:66
RequestHeaders * request_headers()
Definition: scoped_ptr.h:30
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: apache_writer.h:36
Definition: async_fetch.h:53
Definition: rewrite_driver.h:100
Definition: message_handler.h:39
void set_is_proxy(bool x)
Definition: apache_fetch.h:85
Definition: scheduler.h:47
void set_buffered(bool x)
Definition: apache_fetch.h:72
Definition: rewrite_options.h:84
void Wait() LOCKS_EXCLUDED(scheduler_-> mutex())
Blocks waiting for the fetch to complete.
virtual bool IsCachedResultValid(const ResponseHeaders &headers) LOCKS_EXCLUDED(scheduler_-> mutex())