|
| SystemServerContext (RewriteDriverFactory *factory, StringPiece hostname, int port) |
|
void | SetCachePath (SystemCachePath *cache_path) |
|
void | FlushCacheIfNecessary () |
|
SystemRewriteOptions * | global_system_rewrite_options () |
|
GoogleString | hostname_identifier () |
|
void | UpdateCachePurgeSet (const CopyOnWrite< PurgeSet > &purge_set) |
|
virtual void | PostInitHook () |
| Initialize this SystemServerContext to set up its admin site.
|
|
virtual void | ChildInit (SystemRewriteDriverFactory *factory) |
| Called by SystemRewriteDriverFactory::ChildInit. See documentation there.
|
|
void | CreateLocalStatistics (Statistics *global_statistics, SystemRewriteDriverFactory *factory) |
|
bool | initialized () const |
|
virtual void | ApplySessionFetchers (const RequestContextPtr &req, RewriteDriver *driver) |
|
void | AddHtmlRewriteTimeUs (int64 rewrite_time_us) |
|
SystemCachePath * | cache_path () |
|
virtual void | CollapseConfigOverlaysAndComputeSignatures () |
|
void | ConsoleHandler (const SystemRewriteOptions &options, AdminSite::AdminSource source, const QueryParams &query_params, AsyncFetch *fetch) |
|
void | MessageHistoryHandler (const RewriteOptions &options, AdminSite::AdminSource source, AsyncFetch *fetch) |
| Displays recent Info/Warning/Error messages.
|
|
void | StatisticsGraphsHandler (Writer *writer) |
| Deprecated handler for graphs in the PSOL console.
|
|
void | AdminPage (bool is_global, const GoogleUrl &stripped_gurl, const QueryParams &query_params, const RewriteOptions *options, AsyncFetch *fetch) |
|
void | StatisticsPage (bool is_global, const QueryParams &query_params, const RewriteOptions *options, AsyncFetch *fetch) |
|
AdminSite * | admin_site () |
|
| ServerContext (RewriteDriverFactory *factory) |
|
void | SetDefaultLongCacheHeaders (const ContentType *content_type, StringPiece charset, StringPiece cache_control_suffix, ResponseHeaders *header) const |
|
void | set_filename_prefix (const StringPiece &file_prefix) |
|
void | set_statistics (Statistics *x) |
|
void | set_rewrite_stats (RewriteStats *x) |
|
void | set_lock_manager (NamedLockManager *x) |
|
void | set_enable_property_cache (bool enabled) |
|
void | set_message_handler (MessageHandler *x) |
|
StringPiece | filename_prefix () const |
|
Statistics * | statistics () const |
|
NamedLockManager * | lock_manager () const |
|
RewriteDriverFactory * | factory () const |
|
ThreadSynchronizer * | thread_synchronizer () |
|
ExperimentMatcher * | experiment_matcher () |
|
void | ApplyInputCacheControl (const ResourceVector &inputs, ResponseHeaders *headers) |
|
bool | IsPagespeedResource (const GoogleUrl &url) const |
| Is this URL a ref to a Pagespeed resource?
|
|
const RewriteFilter * | FindFilterForDecoding (const StringPiece &id) const |
|
bool | DecodeUrlGivenOptions (const GoogleUrl &url, const RewriteOptions *options, const UrlNamer *url_namer, StringVector *decoded_urls) const |
| See RewriteDriver::DecodeUrl.
|
|
void | ComputeSignature (RewriteOptions *rewrite_options) const |
|
Hasher * | hasher () const |
|
const Hasher * | lock_hasher () const |
|
const Hasher * | contents_hasher () const |
|
FileSystem * | file_system () |
|
void | set_file_system (FileSystem *fs) |
|
UrlNamer * | url_namer () const |
|
void | set_url_namer (UrlNamer *n) |
|
RewriteOptionsManager * | rewrite_options_manager () const |
|
SHA1Signature * | signature () const |
|
void | SetRewriteOptionsManager (RewriteOptionsManager *rom) |
| Takes ownership of RewriteOptionsManager.
|
|
StaticAssetManager * | static_asset_manager () const |
|
void | set_static_asset_manager (StaticAssetManager *manager) |
|
Scheduler * | scheduler () const |
|
void | set_scheduler (Scheduler *s) |
|
bool | has_default_system_fetcher () const |
|
UrlAsyncFetcher * | DefaultSystemFetcher () |
|
virtual CacheUrlAsyncFetcher * | CreateCustomCacheFetcher (const RewriteOptions *options, const GoogleString &fragment, CacheUrlAsyncFetcher::AsyncOpHooks *hooks, UrlAsyncFetcher *fetcher) |
|
Timer * | timer () const |
|
void | set_timer (Timer *timer) |
| Note: doesn't take ownership.
|
|
HTTPCache * | http_cache () const |
|
void | set_http_cache (HTTPCache *x) |
|
void | MakePagePropertyCache (PropertyStore *property_store) |
| Creates PagePropertyCache object with the provided PropertyStore object.
|
|
PropertyCache * | page_property_cache () const |
|
const PropertyCache::Cohort * | dom_cohort () const |
|
void | set_dom_cohort (const PropertyCache::Cohort *c) |
|
const PropertyCache::Cohort * | beacon_cohort () const |
|
void | set_beacon_cohort (const PropertyCache::Cohort *c) |
|
const PropertyCache::Cohort * | dependencies_cohort () const |
|
void | set_dependencies_cohort (const PropertyCache::Cohort *c) |
|
const PropertyCache::Cohort * | fix_reflow_cohort () const |
|
void | set_fix_reflow_cohort (const PropertyCache::Cohort *c) |
|
CacheInterface * | filesystem_metadata_cache () const |
|
void | set_filesystem_metadata_cache (CacheInterface *x) |
|
CacheInterface * | metadata_cache () const |
|
void | set_metadata_cache (CacheInterface *x) |
|
CriticalImagesFinder * | critical_images_finder () const |
|
void | set_critical_images_finder (CriticalImagesFinder *finder) |
|
CriticalSelectorFinder * | critical_selector_finder () const |
|
void | set_critical_selector_finder (CriticalSelectorFinder *finder) |
|
UserAgentMatcher * | user_agent_matcher () const |
|
void | set_user_agent_matcher (UserAgentMatcher *n) |
|
SimpleRandom * | simple_random () |
|
bool | store_outputs_in_file_system () |
|
void | set_store_outputs_in_file_system (bool store) |
|
RewriteStats * | rewrite_stats () const |
|
MessageHandler * | message_handler () const |
|
NamedLock * | MakeCreationLock (const GoogleString &name) |
|
void | TryLockForCreation (NamedLock *creation_lock, Function *callback) |
| Attempt to obtain a named lock without blocking. Return true if we do so.
|
|
void | LockForCreation (NamedLock *creation_lock, Sequence *worker, Function *callback) |
|
void | set_hasher (Hasher *hasher) |
| Setters should probably only be used in testing.
|
|
void | set_signature (SHA1Signature *signature) |
|
void | set_default_system_fetcher (UrlAsyncFetcher *fetcher) |
|
bool | HandleBeacon (StringPiece body, StringPiece user_agent, const RequestContextPtr &request_context) |
|
RewriteOptions * | global_options () |
|
const RewriteOptions * | global_options () const |
|
void | reset_global_options (RewriteOptions *options) |
|
RewriteOptions * | NewOptions () |
| Makes a new, empty set of RewriteOptions.
|
|
bool | GetQueryOptions (const RequestContextPtr &request_context, const RewriteOptions *domain_options, GoogleUrl *request_url, RequestHeaders *request_headers, ResponseHeaders *response_headers, RewriteQuery *rewrite_query) |
|
void | GetRemoteOptions (RewriteOptions *remote_options, bool on_startup) |
|
RewriteOptions * | GetCustomOptions (RequestHeaders *request_headers, RewriteOptions *domain_options, RewriteOptions *query_options) |
|
GoogleString | GetRewriteOptionsSignatureHash (const RewriteOptions *options) |
|
RewriteDriver * | NewRewriteDriver (const RequestContextPtr &request_ctx) |
|
RewriteDriver * | NewRewriteDriverFromPool (RewriteDriverPool *pool, const RequestContextPtr &request_ctx) |
|
RewriteDriver * | NewUnmanagedRewriteDriver (RewriteDriverPool *pool, RewriteOptions *options, const RequestContextPtr &request_ctx) |
|
RewriteDriver * | NewCustomRewriteDriver (RewriteOptions *custom_options, const RequestContextPtr &request_ctx) |
|
void | ReleaseRewriteDriver (RewriteDriver *rewrite_driver) |
|
ThreadSystem * | thread_system () |
|
UsageDataReporter * | usage_data_reporter () |
|
void | set_shutting_down () |
|
bool | shutting_down () const |
|
void | ShutDownDrivers (int64 cutoff_time_ms) |
|
void | MergeNonCachingResponseHeaders (const ResourcePtr &input, const OutputResourcePtr &output) |
|
void | MergeNonCachingResponseHeaders (const ResponseHeaders &input_headers, ResponseHeaders *output_headers) |
| Entry-point with the same functionality, exposed for easier testing.
|
|
QueuedWorkerPool * | html_workers () |
| Pool of worker-threads that can be used to handle html-parsing.
|
|
QueuedWorkerPool * | rewrite_workers () |
| Pool of worker-threads that can be used to handle resource rewriting.
|
|
QueuedWorkerPool * | low_priority_rewrite_workers () |
|
size_t | num_active_rewrite_drivers () |
|
void | InitWorkers () |
|
bool | response_headers_finalized () const |
|
void | set_response_headers_finalized (bool x) |
|
RewriteDriverPool * | standard_rewrite_driver_pool () |
|
const GoogleString & | hostname () const |
| Returns the current server hostname.
|
|
void | set_hostname (const GoogleString &x) |
|
void | set_central_controller (std::shared_ptr< CentralController > controller) |
|
CentralController * | central_controller () |
|
void | AddOriginalContentLengthHeader (const ResourceVector &inputs, ResponseHeaders *headers) |
|
virtual bool | ProxiesHtml () const =0 |
|
RequestProperties * | NewRequestProperties () |
| Makes a new RequestProperties.
|
|
void | DeleteCacheOnDestruction (CacheInterface *cache) |
|
void | set_cache_property_store (CachePropertyStore *p) |
|
void | set_decoding_driver (RewriteDriver *rd) |
|
virtual PropertyStore * | CreatePropertyStore (CacheInterface *cache_backend) |
| Creates CachePropertyStore object which will be used by PagePropertyCache.
|
|
const PropertyCache::Cohort * | AddCohort (const GoogleString &cohort_name, PropertyCache *pcache) |
|
const PropertyCache::Cohort * | AddCohortWithCache (const GoogleString &cohort_name, CacheInterface *cache, PropertyCache *pcache) |
|
const CacheInterface * | pcache_cache_backend () |
|
const
pagespeed::js::JsTokenizerPatterns * | js_tokenizer_patterns () const |
|
void | ShowCacheHandler (Format format, StringPiece url, StringPiece ua, bool should_delete, AsyncFetch *fetch, RewriteOptions *options) |
|
virtual GoogleString | FormatOption (StringPiece option_name, StringPiece args) |
|
A server context with features specific to a PSOL port on a unix system.