17 #ifndef PAGESPEED_APACHE_APACHE_SERVER_CONTEXT_H_
18 #define PAGESPEED_APACHE_APACHE_SERVER_CONTEXT_H_
22 #include "net/instaweb/http/public/request_context.h"
35 namespace net_instaweb {
37 class ApacheRewriteDriverFactory;
38 class ApacheRequestContext;
39 class MeasurementProxyUrlNamer;
40 class ProxyFetchFactory;
41 class RewriteDriverPool;
59 const StringPiece& version);
83 return spdy_config_overlay_.get() != NULL;
86 bool has_non_spdy_config_overlay()
const {
87 return non_spdy_config_overlay_.get() != NULL;
92 spdy_config_overlay_.reset(x);
96 non_spdy_config_overlay_.reset(x);
108 const server_rec* server()
const {
return server_rec_; }
110 ProxyFetchFactory* proxy_fetch_factory() {
111 return proxy_fetch_factory_.get();
114 void InitProxyFetchFactory();
121 return global_config()->proxy_all_requests_mode();
130 ReportNotFoundHelper(kWarning, message, request,
131 rewrite_stats()->resource_404_count());
138 ReportNotFoundHelper(kWarning, message, request, statistics_404_count());
145 ReportNotFoundHelper(kInfo, message, request,
146 rewrite_stats()->slurp_404_count());
154 void ReportNotFoundHelper(MessageType message_type,
156 request_rec* request,
160 server_rec* server_rec_;
169 std::unique_ptr<MeasurementProxyUrlNamer> measurement_url_namer_;
bool has_spdy_config_overlay() const
Definition: apache_server_context.h:82
Definition: statistics.h:43
Definition: apache_config.h:31
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
A server context with features specific to a psol port on a unix system.
Definition: system_rewrite_driver_factory.h:57
void set_spdy_config_overlay(ApacheConfig *x)
These two take ownership of their parameters.
Definition: apache_server_context.h:91
virtual GoogleString FormatOption(StringPiece option_name, StringPiece args)
Definition: scoped_ptr.h:30
Definition: apache_server_context.h:52
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
static const char kProxyInterfaceStatsPrefix[]
Prefix for ProxyInterface stats (active in proxy_all_requests_mode() only).
Definition: apache_server_context.h:55
void ReportSlurpNotFound(StringPiece message, request_rec *request)
Definition: apache_server_context.h:144
static void InitStats(Statistics *statistics)
This must be called for every statistics object in use before using this.
A server context with features specific to a PSOL port on a unix system.
Definition: system_server_context.h:53
void ReportStatisticsNotFound(StringPiece message, request_rec *request)
Definition: apache_server_context.h:137
ApacheConfig * SpdyConfigOverlay()
Creates an Apache RewriteDriver.
Definition: apache_rewrite_driver_factory.h:47
Definition: apache_request_context.h:37
void ReportResourceNotFound(StringPiece message, request_rec *request)
Definition: apache_server_context.h:129
virtual void CollapseConfigOverlaysAndComputeSignatures()
virtual bool ProxiesHtml() const
Definition: apache_server_context.h:120