Page Speed Optimization Libraries  1.9.32.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
net_instaweb::ApacheRequestContext Class Reference
Inheritance diagram for net_instaweb::ApacheRequestContext:
net_instaweb::SystemRequestContext net_instaweb::RequestContext

Public Member Functions

 ApacheRequestContext (AbstractMutex *logging_mutex, Timer *timer, request_rec *req)
 
void SetupSpdyConnectionIfNeeded (request_rec *req)
 
bool use_spdy_fetcher () const
 
spdy_slave_connection_factory * spdy_connection_factory ()
 
- Public Member Functions inherited from net_instaweb::SystemRequestContext
 SystemRequestContext (AbstractMutex *logging_mutex, Timer *timer, StringPiece hostname, int local_port, StringPiece local_ip)
 
void set_url (StringPiece url)
 
int local_port () const
 
const GoogleString & local_ip () const
 
StringPiece url () const
 
- Public Member Functions inherited from net_instaweb::RequestContext
 RequestContext (const HttpOptions &options, AbstractMutex *logging_mutex, Timer *timer)
 
 RequestContext (AbstractMutex *logging_mutex, Timer *timer)
 If you use this constructor, you MUST set_options() later.
 
virtual AbstractLogRecordNewSubordinateLogRecord (AbstractMutex *logging_mutex)
 
RequestTrace * root_trace_context ()
 
void set_root_trace_context (RequestTrace *x)
 Takes ownership of the given context.
 
virtual RequestTrace * CreateDependentTraceContext (const StringPiece &label)
 
virtual void ReleaseDependentTraceContext (RequestTrace *t)
 
virtual AbstractLogRecordlog_record ()
 The log record for the this request, created when the request context is.
 
bool using_spdy () const
 Determines whether this request is using the SPDY protocol.
 
void set_using_spdy (bool x)
 
const GoogleString & minimal_private_suffix () const
 
void set_minimal_private_suffix (StringPiece minimal_private_suffix)
 
void set_accepts_webp (bool x)
 
bool accepts_webp () const
 
SplitRequestType split_request_type () const
 Indicates the type of split html request.
 
void set_split_request_type (SplitRequestType type)
 
int64 request_id () const
 
void set_request_id (int64 x)
 
const GoogleString & sticky_query_parameters_token () const
 
void set_sticky_query_parameters_token (StringPiece x)
 
void AddSessionAuthorizedFetchOrigin (const GoogleString &origin)
 
bool IsSessionAuthorizedFetchOrigin (const GoogleString &origin) const
 
void PrepareLogRecordForOutput ()
 
void WriteBackgroundRewriteLog ()
 Write the log for background rewriting into disk.
 
AbstractLogRecordGetBackgroundRewriteLog (ThreadSystem *thread_system, bool log_urls, bool log_url_indices, int max_rewrite_info_log_size)
 
const TimingInfotiming_info () const
 
TimingInfomutable_timing_info ()
 
void set_options (const HttpOptions &options)
 
void ResetOptions (const HttpOptions &options)
 
const HttpOptions & options () const
 

Static Public Member Functions

static ApacheRequestContextDynamicCast (RequestContext *rc)
 
- Static Public Member Functions inherited from net_instaweb::SystemRequestContext
static SystemRequestContextDynamicCast (RequestContext *rc)
 
static StringPiece MinimalPrivateSuffix (StringPiece hostname)
 
- Static Public Member Functions inherited from net_instaweb::RequestContext
static RequestContextPtr NewTestRequestContext (ThreadSystem *thread_system)
 
static RequestContextPtr NewTestRequestContextWithTimer (ThreadSystem *thread_system, Timer *timer)
 
static RequestContextPtr NewTestRequestContext (AbstractLogRecord *log_record)
 

Additional Inherited Members

- Public Types inherited from net_instaweb::RequestContext
enum  SplitRequestType { SPLIT_FULL, SPLIT_ABOVE_THE_FOLD, SPLIT_BELOW_THE_FOLD }
 Types of split html request.
 
- Protected Member Functions inherited from net_instaweb::RequestContext
 RequestContext (const HttpOptions &options, AbstractMutex *mutex, Timer *timer, AbstractLogRecord *log_record)
 
virtual ~RequestContext ()
 Destructors in refcounted classes should be protected.
 
 REFCOUNT_FRIEND_DECLARATION (RequestContext)
 

Constructor & Destructor Documentation

net_instaweb::ApacheRequestContext::ApacheRequestContext ( AbstractMutex *  logging_mutex,
Timer *  timer,
request_rec *  req 
)

Constructs a request suitable for querying options, but not for initiating fetches. To prepare a context for fetches, call SetupSpdyConnectionIfNeeded after construction.

Member Function Documentation

static ApacheRequestContext* net_instaweb::ApacheRequestContext::DynamicCast ( RequestContext rc)
static

Returns rc as an ApacheRequestContext* if it is one and CHECK fails if it is not. Returns NULL if rc is NULL.

void net_instaweb::ApacheRequestContext::SetupSpdyConnectionIfNeeded ( request_rec *  req)

Creates the data structures needed to do SPDY loopback fetches, if required based on the current connection state.


The documentation for this class was generated from the following file: