Page Speed Optimization Libraries  1.9.32.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
net_instaweb::SystemRewriteOptions Class Reference

#include "system_rewrite_options.h"

Inheritance diagram for net_instaweb::SystemRewriteOptions:
net_instaweb::RewriteOptions net_instaweb::ApacheConfig

Public Member Functions

 SystemRewriteOptions (const StringPiece &description, ThreadSystem *thread_system)
 
 SystemRewriteOptions (ThreadSystem *thread_system)
 
int64 file_cache_clean_interval_ms () const
 
bool has_file_cache_clean_interval_ms () const
 
void set_file_cache_clean_interval_ms (int64 x)
 
int64 file_cache_clean_size_kb () const
 
bool has_file_cache_clean_size_kb () const
 
void set_file_cache_clean_size_kb (int64 x)
 
int64 file_cache_clean_inode_limit () const
 
bool has_file_cache_clean_inode_limit () const
 
void set_file_cache_clean_inode_limit (int64 x)
 
int64 lru_cache_byte_limit () const
 
void set_lru_cache_byte_limit (int64 x)
 
int64 lru_cache_kb_per_process () const
 
void set_lru_cache_kb_per_process (int64 x)
 
bool use_shared_mem_locking () const
 
void set_use_shared_mem_locking (bool x)
 
bool compress_metadata_cache () const
 
void set_compress_metadata_cache (bool x)
 
bool statistics_enabled () const
 
void set_statistics_enabled (bool x)
 
bool statistics_logging_enabled () const
 
void set_statistics_logging_enabled (bool x)
 
int64 statistics_logging_max_file_size_kb () const
 
const GoogleString & statistics_logging_charts_css () const
 
const GoogleString & statistics_logging_charts_js () const
 
int64 statistics_logging_interval_ms () const
 
void set_statistics_logging_interval_ms (int64 x)
 
const GoogleString & file_cache_path () const
 
void set_file_cache_path (const GoogleString &x)
 
const GoogleString & log_dir () const
 
void set_log_dir (const GoogleString &x)
 
const GoogleString & memcached_servers () const
 
void set_memcached_servers (const GoogleString &x)
 
int memcached_threads () const
 
void set_memcached_threads (int x)
 
int memcached_timeout_us () const
 
bool has_memcached_timeout_us () const
 
void set_memcached_timeout_us (int x)
 
const GoogleString & fetcher_proxy () const
 
void set_fetcher_proxy (const GoogleString &x)
 
void set_cache_flush_poll_interval_sec (int64 num_seconds)
 Cache flushing configuration.
 
int64 cache_flush_poll_interval_sec () const
 
void set_cache_flush_filename (const StringPiece &sp)
 
const GoogleString & cache_flush_filename () const
 
const GoogleString & https_options () const
 
const GoogleString & ssl_cert_directory () const
 
const GoogleString & ssl_cert_file () const
 
int64 slurp_flush_limit () const
 
void set_slurp_flush_limit (int64 x)
 
bool slurp_read_only () const
 
void set_slurp_read_only (bool x)
 
bool rate_limit_background_fetches () const
 
const GoogleString & slurp_directory () const
 
void set_slurp_directory (GoogleString x)
 
bool disable_loopback_routing () const
 
bool fetch_with_gzip () const
 
int64 ipro_max_response_bytes () const
 
int64 ipro_max_concurrent_recordings () const
 
int64 default_shared_memory_cache_kb () const
 
void set_default_shared_memory_cache_kb (int64 x)
 
void set_purge_method (const GoogleString &x)
 
const GoogleString & purge_method () const
 
bool test_proxy () const
 
void set_test_proxy (bool x)
 
GoogleString test_proxy_slurp () const
 
bool slurping_enabled () const
 Helper functions.
 
bool slurping_enabled_read_only () const
 
virtual SystemRewriteOptionsClone () const
 
virtual SystemRewriteOptionsNewOptions () const
 Make an empty options object of the same type as this.
 
StringPiece description () const
 
void set_description (const StringPiece &x)
 
- Public Member Functions inherited from net_instaweb::RewriteOptions
bool ImageOptimizationEnabled () const
 
 RewriteOptions (ThreadSystem *thread_system)
 
bool ModificationOK () const
 
bool MergeOK () const
 
void InitializeOptions (const Properties *properties)
 
bool modified () const
 
void SetDefaultRewriteLevel (RewriteLevel level)
 
void SetRewriteLevel (RewriteLevel level)
 
void AddCustomFetchHeader (const StringPiece &name, const StringPiece &value)
 Specify a header to insert when fetching subresources.
 
const NameValuecustom_fetch_header (int i) const
 
int num_custom_fetch_headers () const
 
ExperimentSpecGetExperimentSpec (int id) const
 
bool AvailableExperimentId (int id)
 
virtual ExperimentSpecAddExperimentSpec (const StringPiece &spec, MessageHandler *handler)
 
virtual bool SetExperimentState (int id)
 
void SetExperimentStateStr (const StringPiece &experiment_index)
 
int experiment_id () const
 
int experiment_spec_id (int i) const
 
GoogleString GetExperimentStateStr () const
 
ExperimentSpecexperiment_spec (int i) const
 
int num_experiments () const
 
bool enroll_experiment () const
 
void AddUrlValuedAttribute (const StringPiece &element, const StringPiece &attribute, semantic_type::Category category)
 
void UrlValuedAttribute (int index, StringPiece *element, StringPiece *attribute, semantic_type::Category *category) const
 
int num_url_valued_attributes () const
 
void AddInlineUnauthorizedResourceType (semantic_type::Category category)
 
bool HasInlineUnauthorizedResourceType (semantic_type::Category category) const
 
void ClearInlineUnauthorizedResourceTypes ()
 
void set_inline_unauthorized_resource_types (ResourceCategorySet x)
 
bool RegisterLibrary (uint64 bytes, StringPiece md5_hash, StringPiece canonical_url)
 Store size, md5 hash and canonical url for library recognition.
 
const
JavascriptLibraryIdentification
javascript_library_identification () const
 
RewriteLevel level () const
 
bool AdjustFiltersByCommaSeparatedList (const StringPiece &filters, MessageHandler *handler)
 
bool EnableFiltersByCommaSeparatedList (const StringPiece &filters, MessageHandler *handler)
 
bool DisableFiltersByCommaSeparatedList (const StringPiece &filters, MessageHandler *handler)
 
bool ForbidFiltersByCommaSeparatedList (const StringPiece &filters, MessageHandler *handler)
 
void DisableAllFilters ()
 Set rewrite level to kPassThrough and explicitly disable all filters.
 
void DisableAllFiltersNotExplicitlyEnabled ()
 
void DistributeFiltersByCommaSeparatedList (const StringPiece &filter_ids, MessageHandler *handler)
 
void DistributeFilter (const StringPiece &filter_id)
 
bool Distributable (const StringPiece &filter_id) const
 
void EnableFilter (Filter filter)
 
void ForceEnableFilter (Filter filter)
 
void DisableFilter (Filter filter)
 
void DisableIfNotExplictlyEnabled (Filter filter)
 
void ForbidFilter (Filter filter)
 
void EnableFilters (const FilterSet &filter_set)
 
void DisableFilters (const FilterSet &filter_set)
 
void ForbidFilters (const FilterSet &filter_set)
 
void ClearFilters ()
 
void SoftEnableFilterForTesting (Filter filter)
 
void EnableExtendCacheFilters ()
 
bool Enabled (Filter filter) const
 
bool Forbidden (Filter filter) const
 
bool Forbidden (StringPiece filter_id) const
 
void GetEnabledFiltersRequiringScriptExecution (FilterVector *filters) const
 Returns the set of enabled filters that require JavaScript for execution.
 
void DisableFiltersRequiringScriptExecution ()
 Disables all filters that depend on executing custom javascript.
 
OptionSettingResult SetOptionFromName (StringPiece name, StringPiece value, GoogleString *msg)
 
OptionSettingResult SetOptionFromName (StringPiece name, StringPiece value)
 Like above, but doesn't bother formatting the error message.
 
OptionSettingResult SetOptionFromQuery (StringPiece name, StringPiece value)
 
virtual OptionSettingResult ParseAndSetOptionFromName1 (StringPiece name, StringPiece arg, GoogleString *msg, MessageHandler *handler)
 
virtual OptionSettingResult ParseAndSetOptionFromName2 (StringPiece name, StringPiece arg1, StringPiece arg2, GoogleString *msg, MessageHandler *handler)
 
virtual OptionSettingResult ParseAndSetOptionFromName3 (StringPiece name, StringPiece arg1, StringPiece arg2, StringPiece arg3, GoogleString *msg, MessageHandler *handler)
 
bool OptionValue (StringPiece option_name, const char **id, bool *was_set, GoogleString *value) const
 
bool SetOptionsFromName (const OptionSet &option_set, MessageHandler *handler)
 
bool SetOptionFromNameAndLog (StringPiece name, StringPiece value, MessageHandler *handler)
 
int64 css_outline_min_bytes () const
 
void set_css_outline_min_bytes (int64 x)
 
GoogleString ga_id () const
 
void set_ga_id (GoogleString id)
 
bool increase_speed_tracking () const
 
void set_increase_speed_tracking (bool x)
 
int64 js_outline_min_bytes () const
 
void set_js_outline_min_bytes (int64 x)
 
int64 progressive_jpeg_min_bytes () const
 
void set_progressive_jpeg_min_bytes (int64 x)
 
int64 css_flatten_max_bytes () const
 
void set_css_flatten_max_bytes (int64 x)
 
bool cache_small_images_unrewritten () const
 
void set_cache_small_images_unrewritten (bool x)
 
int64 image_resolution_limit_bytes () const
 
void set_image_resolution_limit_bytes (int64 x)
 
int64 ImageInlineMaxBytes () const
 Retrieve the image inlining threshold, but return 0 if it's disabled.
 
void set_image_inline_max_bytes (int64 x)
 
int64 CssImageInlineMaxBytes () const
 Retrieve the css image inlining threshold, but return 0 if it's disabled.
 
void set_css_image_inline_max_bytes (int64 x)
 
int64 MaxImageInlineMaxBytes () const
 The larger of ImageInlineMaxBytes and CssImageInlineMaxBytes.
 
int64 css_inline_max_bytes () const
 
void set_css_inline_max_bytes (int64 x)
 
int64 js_inline_max_bytes () const
 
void set_js_inline_max_bytes (int64 x)
 
int64 max_html_cache_time_ms () const
 
void set_max_html_cache_time_ms (int64 x)
 
int64 max_html_parse_bytes () const
 
void set_max_html_parse_bytes (int64 x)
 
int64 max_image_bytes_for_webp_in_css () const
 
void set_max_image_bytes_for_webp_in_css (int64 x)
 
int64 max_cacheable_response_content_length () const
 
void set_max_cacheable_response_content_length (int64 x)
 
int64 min_resource_cache_time_to_rewrite_ms () const
 
void set_min_resource_cache_time_to_rewrite_ms (int64 x)
 
bool need_to_store_experiment_data () const
 
void set_need_to_store_experiment_data (bool x)
 
int64 blocking_fetch_timeout_ms () const
 
void set_blocking_fetch_timeout_ms (int64 x)
 
bool override_ie_document_mode () const
 
void set_override_ie_document_mode (bool x)
 
int64 blink_blacklist_end_timestamp_ms () const
 
void set_blink_blacklist_end_timestamp_ms (int64 x)
 
bool persist_blink_blacklist () const
 
void set_persist_blink_blacklist (bool x)
 
bool preserve_url_relativity () const
 
void set_preserve_url_relativity (bool x)
 
bool IsUrlCacheValid (StringPiece url, int64 time_ms, bool search_wildcards) const
 
void AddUrlCacheInvalidationEntry (StringPiece url_pattern, int64 timestamp_ms, bool ignores_metadata_and_pcache)
 
void PurgeUrl (StringPiece url, int64 timestamp_ms)
 Purge a cache entry for an exact URL, not a wildcard.
 
bool IsUrlCacheInvalidationEntriesSorted () const
 
void set_cache_invalidation_timestamp_mutex (ThreadSystem::RWLock *lock)
 
int64 cache_invalidation_timestamp () const
 
bool has_cache_invalidation_timestamp_ms () const
 
bool UpdateCacheInvalidationTimestampMs (int64 timestamp_ms) LOCKS_EXCLUDED(cache_purge_mutex_.get())
 
bool UpdateCachePurgeSet (const CopyOnWrite< PurgeSet > &purge_set) LOCKS_EXCLUDED(cache_purge_mutex_.get())
 
GoogleString PurgeSetString () const
 
int64 idle_flush_time_ms () const
 
void set_idle_flush_time_ms (int64 x)
 
int64 flush_buffer_limit_bytes () const
 How much accumulated HTML will result in PSA introducing a flush.
 
void set_flush_buffer_limit_bytes (int64 x)
 
int max_url_segment_size () const
 
void set_max_url_segment_size (int x)
 
int image_max_rewrites_at_once () const
 
void set_image_max_rewrites_at_once (int x)
 
int max_url_size () const
 The maximum size of the entire URL. If '0', this is left unlimited.
 
void set_max_url_size (int x)
 
int rewrite_deadline_ms () const
 
void set_rewrite_deadline_ms (int x)
 
bool test_instant_fetch_rewrite_deadline () const
 
void set_test_instant_fetch_rewrite_deadline (bool x)
 
void set_test_only_prioritize_critical_css_dont_apply_original_css (bool x)
 
bool test_only_prioritize_critical_css_dont_apply_original_css () const
 
int domain_shard_count () const
 
void set_domain_shard_count (int64 x)
 
void set_enabled (EnabledEnum x)
 
bool enabled () const
 
bool unplugged () const
 
void set_add_options_to_urls (bool x)
 
bool add_options_to_urls () const
 
void set_publicly_cache_mismatched_hashes_experimental (bool x)
 
bool publicly_cache_mismatched_hashes_experimental () const
 
void set_oblivious_pagespeed_urls (bool x)
 
bool oblivious_pagespeed_urls () const
 
void set_in_place_rewriting_enabled (bool x)
 
bool in_place_rewriting_enabled () const
 
void set_in_place_wait_for_optimized (bool x)
 
bool in_place_wait_for_optimized () const
 
void set_in_place_rewrite_deadline_ms (int x)
 
int in_place_rewrite_deadline_ms () const
 
void set_in_place_preemptive_rewrite_css (bool x)
 
bool in_place_preemptive_rewrite_css () const
 
void set_in_place_preemptive_rewrite_css_images (bool x)
 
bool in_place_preemptive_rewrite_css_images () const
 
void set_in_place_preemptive_rewrite_images (bool x)
 
bool in_place_preemptive_rewrite_images () const
 
void set_in_place_preemptive_rewrite_javascript (bool x)
 
bool in_place_preemptive_rewrite_javascript () const
 
void set_private_not_vary_for_ie (bool x)
 
bool private_not_vary_for_ie () const
 
void set_combine_across_paths (bool x)
 
bool combine_across_paths () const
 
void set_log_background_rewrites (bool x)
 
bool log_background_rewrites () const
 
void set_log_rewrite_timing (bool x)
 
bool log_rewrite_timing () const
 
void set_log_url_indices (bool x)
 
bool log_url_indices () const
 
void set_lowercase_html_names (bool x)
 
bool lowercase_html_names () const
 
void set_always_rewrite_css (bool x)
 
bool always_rewrite_css () const
 
void set_respect_vary (bool x)
 
bool respect_vary () const
 
void set_respect_x_forwarded_proto (bool x)
 
bool respect_x_forwarded_proto () const
 
void set_flush_html (bool x)
 
bool flush_html () const
 
void set_serve_split_html_in_two_chunks (bool x)
 
bool serve_split_html_in_two_chunks () const
 
void set_serve_stale_if_fetch_error (bool x)
 
bool serve_stale_if_fetch_error () const
 
void set_serve_ghost_click_buster_with_split_html (bool x)
 
bool serve_ghost_click_buster_with_split_html () const
 
void set_serve_xhr_access_control_headers (bool x)
 
bool serve_xhr_access_control_headers () const
 
void set_proactively_freshen_user_facing_request (bool x)
 
bool proactively_freshen_user_facing_request () const
 
void set_serve_stale_while_revalidate_threshold_sec (int64 x)
 
int64 serve_stale_while_revalidate_threshold_sec () const
 
void set_enable_flush_early_critical_css (bool x)
 
bool enable_flush_early_critical_css () const
 
void set_use_selectors_for_critical_css (bool x)
 
bool use_selectors_for_critical_css () const
 
void set_default_cache_html (bool x)
 
bool default_cache_html () const
 
void set_modify_caching_headers (bool x)
 
bool modify_caching_headers () const
 
void set_inline_only_critical_images (bool x)
 
bool inline_only_critical_images () const
 
void set_critical_images_beacon_enabled (bool x)
 
bool critical_images_beacon_enabled () const
 
void set_beacon_reinstrument_time_sec (int x)
 
int beacon_reinstrument_time_sec () const
 
void set_accept_invalid_signatures (bool x)
 
bool accept_invalid_signatures () const
 
void set_request_option_override (StringPiece p)
 
const GoogleString & request_option_override () const
 
void set_url_signing_key (StringPiece p)
 
const GoogleString & url_signing_key () const
 
void set_lazyload_images_after_onload (bool x)
 
bool lazyload_images_after_onload () const
 
void set_lazyload_images_blank_url (const StringPiece &p)
 
const GoogleString & lazyload_images_blank_url () const
 
void set_max_inlined_preview_images_index (int x)
 
int max_inlined_preview_images_index () const
 
void set_use_blank_image_for_inline_preview (bool x)
 
bool use_blank_image_for_inline_preview () const
 
void set_min_image_size_low_resolution_bytes (int64 x)
 
int64 min_image_size_low_resolution_bytes () const
 
void set_max_image_size_low_resolution_bytes (int64 x)
 
int64 max_image_size_low_resolution_bytes () const
 
void set_experiment_cookie_duration_ms (int64 x)
 
int64 experiment_cookie_duration_ms () const
 
void set_finder_properties_cache_expiration_time_ms (int64 x)
 
int64 finder_properties_cache_expiration_time_ms () const
 
void set_finder_properties_cache_refresh_time_ms (int64 x)
 
int64 finder_properties_cache_refresh_time_ms () const
 
void set_rewrite_random_drop_percentage (int x)
 
int rewrite_random_drop_percentage () const
 
bool css_preserve_urls () const
 
void set_css_preserve_urls (bool x)
 
bool image_preserve_urls () const
 
void set_image_preserve_urls (bool x)
 
bool js_preserve_urls () const
 
void set_js_preserve_urls (bool x)
 
void set_metadata_cache_staleness_threshold_ms (int64 x)
 
int64 metadata_cache_staleness_threshold_ms () const
 
void set_metadata_input_errors_cache_ttl_ms (int64 x)
 
int64 metadata_input_errors_cache_ttl_ms () const
 
const GoogleString & downstream_cache_purge_method () const
 
void set_downstream_cache_purge_method (const StringPiece &p)
 
const GoogleString & downstream_cache_purge_location_prefix () const
 
void set_downstream_cache_purge_location_prefix (StringPiece p)
 
bool IsDownstreamCacheIntegrationEnabled () const
 
void set_downstream_cache_rebeaconing_key (const StringPiece &p)
 
const GoogleString & downstream_cache_rebeaconing_key () const
 
bool IsDownstreamCacheRebeaconingKeyConfigured () const
 
bool MatchesDownstreamCacheRebeaconingKey (StringPiece key) const
 
void set_downstream_cache_rewritten_percentage_threshold (int64 x)
 
int64 downstream_cache_rewritten_percentage_threshold () const
 
const BeaconUrlbeacon_url () const
 
void set_beacon_url (const GoogleString &beacon_url)
 
virtual bool trim_urls_in_css () const
 Return false in a subclass if you want to disallow all URL trimming in CSS.
 
int64 image_jpeg_recompress_quality () const
 
void set_image_jpeg_recompress_quality (int64 x)
 
int64 image_jpeg_recompress_quality_for_small_screens () const
 
void set_image_jpeg_recompress_quality_for_small_screens (int64 x)
 
int64 image_recompress_quality () const
 
void set_image_recompress_quality (int64 x)
 
int image_limit_optimized_percent () const
 
void set_image_limit_optimized_percent (int x)
 
int image_limit_resize_area_percent () const
 
void set_image_limit_resize_area_percent (int x)
 
int image_limit_rendered_area_percent () const
 
void set_image_limit_rendered_area_percent (int x)
 
int64 image_jpeg_num_progressive_scans () const
 
void set_image_jpeg_num_progressive_scans (int64 x)
 
int64 image_jpeg_num_progressive_scans_for_small_screens () const
 
void set_image_jpeg_num_progressive_scans_for_small_screens (int64 x)
 
int64 image_webp_recompress_quality () const
 
void set_image_webp_recompress_quality (int64 x)
 
int64 image_webp_recompress_quality_for_small_screens () const
 
void set_image_webp_recompress_quality_for_small_screens (int64 x)
 
int64 image_webp_timeout_ms () const
 
void set_image_webp_timeout_ms (int64 x)
 
bool domain_rewrite_hyperlinks () const
 
void set_domain_rewrite_hyperlinks (bool x)
 
bool client_domain_rewrite () const
 
void set_client_domain_rewrite (bool x)
 
void set_flush_more_resources_early_if_time_permits (bool x)
 
bool flush_more_resources_early_if_time_permits () const
 
void set_flush_more_resources_in_ie_and_firefox (bool x)
 
bool flush_more_resources_in_ie_and_firefox () const
 
void set_max_prefetch_js_elements (int x)
 
int max_prefetch_js_elements () const
 
void set_enable_defer_js_experimental (bool x)
 
bool enable_defer_js_experimental () const
 
void set_disable_rewrite_on_no_transform (bool x)
 
bool disable_rewrite_on_no_transform () const
 
void set_disable_background_fetches_for_bots (bool x)
 
bool disable_background_fetches_for_bots () const
 
void set_enable_cache_purge (bool x)
 
bool enable_cache_purge () const
 
void set_proactive_resource_freshening (bool x)
 
bool proactive_resource_freshening () const
 
void set_lazyload_highres_images (bool x)
 
bool lazyload_highres_images () const
 
void set_enable_blink_debug_dashboard (bool x)
 
bool enable_blink_debug_dashboard () const
 
void set_enable_blink_html_change_detection (bool x)
 
bool enable_blink_html_change_detection () const
 
void set_enable_blink_html_change_detection_logging (bool x)
 
bool enable_blink_html_change_detection_logging () const
 
void set_use_smart_diff_in_blink (bool x)
 
bool use_smart_diff_in_blink () const
 
void set_use_fallback_property_cache_values (bool x)
 
bool use_fallback_property_cache_values () const
 
void set_await_pcache_lookup (bool x)
 
bool await_pcache_lookup () const
 
void set_enable_prioritizing_scripts (bool x)
 
bool enable_prioritizing_scripts () const
 
void set_blink_html_change_detection_time_ms (int64 x)
 
int64 blink_html_change_detection_time_ms () const
 
const GoogleString & blocking_rewrite_key () const
 
void set_blocking_rewrite_key (const StringPiece &p)
 
void EnableBlockingRewriteForRefererUrlPattern (const StringPiece &url_pattern)
 
bool IsBlockingRewriteEnabledForReferer (const StringPiece &url) const
 
bool IsBlockingRewriteRefererUrlPatternPresent () const
 
bool rewrite_uncacheable_resources () const
 
void set_rewrite_uncacheable_resources (bool x)
 
void set_running_experiment (bool x)
 
bool running_experiment () const
 
void set_experiment_ga_slot (int x)
 x should be between 1 and 5 inclusive.
 
int experiment_ga_slot () const
 
void set_enroll_experiment_id (int x)
 
int enroll_experiment_id () const
 
void set_report_unload_time (bool x)
 
bool report_unload_time () const
 
void set_implicit_cache_ttl_ms (int64 x)
 
int64 implicit_cache_ttl_ms () const
 
void set_load_from_file_cache_ttl_ms (int64 x)
 
int64 load_from_file_cache_ttl_ms () const
 
bool load_from_file_cache_ttl_ms_was_set () const
 
void set_x_header_value (const StringPiece &p)
 
const GoogleString & x_header_value () const
 
void set_distributed_rewrite_key (const StringPiece &p)
 
const GoogleString & distributed_rewrite_key () const
 
void set_distribute_fetches (bool x)
 
bool distribute_fetches () const
 
void set_distributed_rewrite_servers (const StringPiece &p)
 
const GoogleString & distributed_rewrite_servers () const
 
void set_distributed_rewrite_timeout_ms (const int64 x)
 
int64 distributed_rewrite_timeout_ms () const
 
void set_avoid_renaming_introspective_javascript (bool x)
 
bool avoid_renaming_introspective_javascript () const
 
int64 blink_max_html_size_rewritable () const
 
void set_blink_max_html_size_rewritable (int64 x)
 
void set_critical_line_config (const StringPiece &p)
 
const GoogleString & critical_line_config () const
 
void set_forbid_all_disabled_filters (bool x)
 
bool forbid_all_disabled_filters () const
 
bool reject_blacklisted () const
 
void set_reject_blacklisted (bool x)
 
HttpStatus::Code reject_blacklisted_status_code () const
 
void set_reject_blacklisted_status_code (HttpStatus::Code x)
 
bool support_noscript_enabled () const
 
void set_support_noscript_enabled (bool x)
 
bool enable_extended_instrumentation () const
 
void set_enable_extended_instrumentation (bool x)
 
bool use_experimental_js_minifier () const
 
void set_use_experimental_js_minifier (bool x)
 
void set_max_combined_css_bytes (int64 x)
 
int64 max_combined_css_bytes () const
 
void set_max_combined_js_bytes (int64 x)
 
int64 max_combined_js_bytes () const
 
void set_pre_connect_url (const StringPiece &p)
 
const GoogleString & pre_connect_url () const
 
void set_property_cache_http_status_stability_threshold (int x)
 
int property_cache_http_status_stability_threshold () const
 
void set_max_rewrite_info_log_size (int x)
 
int max_rewrite_info_log_size () const
 
void set_enable_aggressive_rewriters_for_mobile (bool x)
 
bool enable_aggressive_rewriters_for_mobile () const
 
void set_allow_logging_urls_in_log_record (bool x)
 
bool allow_logging_urls_in_log_record () const
 
void set_allow_options_to_be_set_by_cookies (bool x)
 
bool allow_options_to_be_set_by_cookies () const
 
void set_non_cacheables_for_cache_partial_html (const StringPiece &p)
 
const GoogleString & non_cacheables_for_cache_partial_html () const
 
void set_no_transform_optimized_images (bool x)
 
bool no_transform_optimized_images () const
 
void set_access_control_allow_origins (const StringPiece &p)
 
const GoogleString & access_control_allow_origins () const
 
void set_hide_referer_using_meta (bool x)
 
bool hide_referer_using_meta () const
 
void set_max_low_res_image_size_bytes (int64 x)
 
int64 max_low_res_image_size_bytes () const
 
void set_max_low_res_to_full_res_image_size_percentage (int x)
 
int max_low_res_to_full_res_image_size_percentage () const
 
void set_serve_rewritten_webp_urls_to_any_agent (bool x)
 
bool serve_rewritten_webp_urls_to_any_agent () const
 
void set_cache_fragment (const StringPiece &p)
 
const GoogleString & cache_fragment () const
 
void set_sticky_query_parameters (StringPiece p)
 
const GoogleString & sticky_query_parameters () const
 
void set_option_cookies_duration_ms (int64 x)
 
int64 option_cookies_duration_ms () const
 
bool mob_layout () const
 
bool mob_cxx_layout () const
 
void set_mob_cxx_layout (bool x)
 
bool mob_logo () const
 
bool mob_nav () const
 
virtual void Merge (const RewriteOptions &src)
 
void Allow (const StringPiece &wildcard_pattern)
 
void Disallow (const StringPiece &wildcard_pattern)
 
void AllowWhenInlining (const StringPiece &wildcard_pattern)
 Like Allow(). See IsAllowedWhenInlining().
 
void AllowOnlyWhenInlining (const StringPiece &wildcard_pattern)
 
void DisallowWhenInlining (const StringPiece &wildcard_pattern)
 Like Disallow(). See IsAllowedWhenInlining().
 
virtual void DisallowTroublesomeResources ()
 
virtual void DisallowResourcesForProxy ()
 
const DomainLawyerdomain_lawyer () const
 
DomainLawyerWriteableDomainLawyer ()
 
FileLoadPolicyfile_load_policy ()
 
const FileLoadPolicyfile_load_policy () const
 
bool IsAllowed (const StringPiece &url) const
 
bool IsAllowedWhenInlining (const StringPiece &url) const
 
void RetainComment (const StringPiece &comment)
 Adds a new comment wildcard pattern to be retained.
 
bool IsRetainedComment (const StringPiece &comment) const
 
void DisableLazyloadForClassName (const StringPiece &class_name)
 Adds a new class name for which lazyload should be disabled.
 
bool IsLazyloadEnabledForClassName (const StringPiece &class_name) const
 Checks if lazyload images is enabled for the specified class.
 
void set_override_caching_ttl_ms (int64 x)
 
int64 override_caching_ttl_ms () const
 
void AddOverrideCacheTtl (const StringPiece &wildcard)
 
bool IsCacheTtlOverridden (const StringPiece &url) const
 Is the cache TTL overridden for the given url?
 
void AddRejectedUrlWildcard (const GoogleString &wildcard)
 
void AddRejectedHeaderWildcard (const StringPiece &header_name, const GoogleString &wildcard)
 
void set_min_cache_ttl_ms (int64 x)
 
int64 min_cache_ttl_ms () const
 
bool IsRequestDeclined (const GoogleString &url, const RequestHeaders *request_headers) const
 
void ComputeSignature () LOCKS_EXCLUDED(cache_purge_mutex_.get())
 
void ComputeSignatureLockHeld () SHARED_LOCKS_REQUIRED(cache_purge_mutex_)
 
void Freeze ()
 
bool ClearSignatureWithCaution ()
 
bool frozen () const
 
bool ClearSignatureForTesting ()
 
const GoogleString & signature () const
 Returns the computed signature. More...
 
virtual GoogleString OptionsToString () const
 
GoogleString FilterSetToString (const FilterSet &filter_set) const
 
GoogleString EnabledFiltersToString () const
 
GoogleString SafeEnabledOptionsToString () const
 
virtual GoogleString ToExperimentString () const
 
virtual GoogleString ToExperimentDebugString () const
 
const OptionBaseVectorall_options () const
 
bool IsEqual (const RewriteOptions &that) const
 
const Hasher * hasher () const
 Returns the hasher used for signatures and URLs to purge.
 
const SHA1Signature * sha1signature () const
 
ThreadSystem * thread_system () const
 
HttpOptions ComputeHttpOptions () const
 

Static Public Member Functions

static void Initialize ()
 
static void Terminate ()
 
static const SystemRewriteOptionsDynamicCast (const RewriteOptions *instance)
 
static SystemRewriteOptionsDynamicCast (RewriteOptions *instance)
 
- Static Public Member Functions inherited from net_instaweb::RewriteOptions
static const char * FilterName (Filter filter)
 
static const char * FilterId (Filter filter)
 
static int NumFilterIds ()
 
static bool AddByNameToFilterSet (const StringPiece &option, FilterSet *set, MessageHandler *handler)
 
static bool ParseRewriteLevel (const StringPiece &in, RewriteLevel *out)
 
static bool ParseInlineUnauthorizedResourceType (const StringPiece &in, ResourceCategorySet *resource_types)
 
static bool ParseBeaconUrl (const StringPiece &in, BeaconUrl *out)
 
static bool Initialize ()
 
static bool Terminate ()
 
static bool AddCommaSeparatedListToOptionSet (const StringPiece &options, OptionSet *set, MessageHandler *handler)
 
static bool ParseFromString (StringPiece value_string, bool *value)
 
static bool ParseFromString (StringPiece value_string, EnabledEnum *value)
 
static bool ParseFromString (StringPiece value_string, int *value)
 
static bool ParseFromString (StringPiece value_string, int64 *value)
 
static bool ParseFromString (StringPiece value_string, GoogleString *value)
 
static bool ParseFromString (StringPiece value_string, RewriteLevel *value)
 
static bool ParseFromString (StringPiece value_string, ResourceCategorySet *value)
 
static bool ParseFromString (StringPiece value_string, BeaconUrl *value)
 
static bool ParseFromString (StringPiece value_string, protobuf::MessageLite *proto)
 
static Filter LookupFilterById (const StringPiece &filter_id)
 
static Filter LookupFilter (const StringPiece &filter_name)
 Convert the filter name to a Filter.
 
static const PropertyBase * LookupOptionById (StringPiece option_id)
 
static const PropertyBase * LookupOptionByName (StringPiece option_name)
 
static const StringPiece LookupOptionNameById (StringPiece option_id)
 
static bool IsValidOptionName (StringPiece name)
 Determine if the given option name is valid/known.
 

Additional Inherited Members

- Public Types inherited from net_instaweb::RewriteOptions
enum  Filter {
  kAddBaseTag, kAddHead, kAddInstrumentation, kComputeStatistics,
  kCachePartialHtml, kCanonicalizeJavascriptLibraries, kCollapseWhitespace, kCollectFlushEarlyContentFilter,
  kCombineCss, kCombineHeads, kCombineJavascript, kComputeCriticalCss,
  kComputeVisibleText, kConvertGifToPng, kConvertJpegToProgressive, kConvertJpegToWebp,
  kConvertMetaTags, kConvertPngToJpeg, kConvertToWebpLossless, kDebug,
  kDecodeRewrittenUrls, kDedupInlinedImages, kDeferIframe, kDeferJavascript,
  kDelayImages, kDeterministicJs, kDisableJavascript, kDivStructure,
  kElideAttributes, kExperimentSpdy, kExplicitCloseTags, kExtendCacheCss,
  kExtendCacheImages, kExtendCachePdfs, kExtendCacheScripts, kFallbackRewriteCssUrls,
  kFixReflows, kFlattenCssImports, kFlushSubresources, kHandleNoscriptRedirect,
  kHtmlWriterFilter, kIncludeJsSourceMaps, kInlineCss, kInlineGoogleFontCss,
  kInlineImages, kInlineImportToLink, kInlineJavascript, kInPlaceOptimizeForBrowser,
  kInsertDnsPrefetch, kInsertGA, kInsertImageDimensions, kJpegSubsampling,
  kLazyloadImages, kLeftTrimUrls, kLocalStorageCache, kMakeGoogleAnalyticsAsync,
  kMobilize, kMoveCssAboveScripts, kMoveCssToHead, kOutlineCss,
  kOutlineJavascript, kPedantic, kPrioritizeCriticalCss, kRecompressJpeg,
  kRecompressPng, kRecompressWebp, kRemoveComments, kRemoveQuotes,
  kResizeImages, kResizeMobileImages, kResizeToRenderedImageDimensions, kRewriteCss,
  kRewriteDomains, kRewriteJavascriptExternal, kRewriteJavascriptInline, kRewriteStyleAttributes,
  kRewriteStyleAttributesWithUrl, kSplitHtml, kSplitHtmlHelper, kSpriteImages,
  kSquashImagesForMobileScreen, kStripImageColorProfile, kStripImageMetaData, kStripNonCacheable,
  kStripScripts, kEndOfFilters
}
 
enum  EnabledEnum { kEnabledOff, kEnabledOn, kEnabledUnplugged }
 
enum  OptionScope {
  kQueryScope, kDirectoryScope, kServerScope, kProcessScope,
  kProcessScopeStrict
}
 
enum  RewriteLevel {
  kPassThrough, kOptimizeForBandwidth, kCoreFilters, kTestingCoreFilters,
  kAllFilters
}
 
enum  OptionSettingResult { kOptionOk, kOptionNameUnknown, kOptionValueInvalid }
 Used for return value of SetOptionFromName.
 
typedef EnumSet< Filter,
kEndOfFilters > 
FilterSet
 
typedef std::vector< FilterFilterVector
 
typedef std::set< GoogleString > FilterIdSet
 Convenience name for a set of rewrite filter ids.
 
typedef std::pair
< GoogleString, GoogleString > 
OptionStringPair
 
typedef std::set
< OptionStringPair
OptionSet
 
typedef std::vector
< PropertyBase * > 
PropertyVector
 
typedef std::vector< OptionBase * > OptionBaseVector
 Convenience name for a set of rewrite options.
 
typedef std::set
< semantic_type::Category > 
ResourceCategorySet
 
- Static Public Attributes inherited from net_instaweb::RewriteOptions
static const char kAcceptInvalidSignatures []
 
static const char kAccessControlAllowOrigins []
 
static const char kAddOptionsToUrls []
 
static const char kAllowLoggingUrlsInLogRecord []
 
static const char kAllowOptionsToBeSetByCookies []
 
static const char kAlwaysRewriteCss []
 
static const char kAnalyticsID []
 
static const char kAvoidRenamingIntrospectiveJavascript []
 
static const char kAwaitPcacheLookup []
 
static const char kBeaconReinstrumentTimeSec []
 
static const char kBeaconUrl []
 
static const char kBlinkMaxHtmlSizeRewritable []
 
static const char kCacheFragment []
 
static const char kCacheSmallImagesUnrewritten []
 
static const char kClientDomainRewrite []
 
static const char kCombineAcrossPaths []
 
static const char kCriticalImagesBeaconEnabled []
 
static const char kCriticalLineConfig []
 
static const char kCssFlattenMaxBytes []
 
static const char kCssImageInlineMaxBytes []
 
static const char kCssInlineMaxBytes []
 
static const char kCssOutlineMinBytes []
 
static const char kCssPreserveURLs []
 
static const char kDefaultCacheHtml []
 
static const char kDisableBackgroundFetchesForBots []
 
static const char kDisableRewriteOnNoTransform []
 
static const char kDistributeFetches []
 
static const char kDistributedRewriteKey []
 
static const char kDistributedRewriteServers []
 
static const char kDistributedRewriteTimeoutMs []
 
static const char kDomainRewriteHyperlinks []
 
static const char kDomainShardCount []
 
static const char kDownstreamCachePurgeMethod []
 
static const char kDownstreamCacheRebeaconingKey []
 
static const char kDownstreamCacheRewrittenPercentageThreshold []
 
static const char kEnableAggressiveRewritersForMobile []
 
static const char kEnableBlinkHtmlChangeDetection []
 
static const char kEnableBlinkHtmlChangeDetectionLogging []
 
static const char kEnableCachePurge []
 
static const char kEnableDeferJsExperimental []
 
static const char kEnableExtendedInstrumentation []
 
static const char kEnableFlushEarlyCriticalCss []
 
static const char kEnableLazyLoadHighResImages []
 
static const char kEnablePrioritizingScripts []
 
static const char kEnabled []
 
static const char kEnrollExperiment []
 
static const char kExperimentCookieDurationMs []
 
static const char kExperimentSlot []
 
static const char kFetcherTimeOutMs []
 
static const char kFinderPropertiesCacheExpirationTimeMs []
 
static const char kFinderPropertiesCacheRefreshTimeMs []
 
static const char kFlushBufferLimitBytes []
 
static const char kFlushHtml []
 
static const char kFlushMoreResourcesEarlyIfTimePermits []
 
static const char kForbidAllDisabledFilters []
 
static const char kHideRefererUsingMeta []
 
static const char kIdleFlushTimeMs []
 
static const char kImageInlineMaxBytes []
 
static const char kImageJpegNumProgressiveScans []
 
static const char kImageJpegNumProgressiveScansForSmallScreens []
 
static const char kImageJpegRecompressionQuality []
 
static const char kImageJpegRecompressionQualityForSmallScreens []
 
static const char kImageLimitOptimizedPercent []
 
static const char kImageLimitRenderedAreaPercent []
 
static const char kImageLimitResizeAreaPercent []
 
static const char kImageMaxRewritesAtOnce []
 
static const char kImagePreserveURLs []
 
static const char kImageRecompressionQuality []
 
static const char kImageResolutionLimitBytes []
 
static const char kImageWebpRecompressionQuality []
 
static const char kImageWebpRecompressionQualityForSmallScreens []
 
static const char kImageWebpTimeoutMs []
 
static const char kImplicitCacheTtlMs []
 
static const char kIncreaseSpeedTracking []
 
static const char kInlineOnlyCriticalImages []
 
static const char kInPlacePreemptiveRewriteCss []
 
static const char kInPlacePreemptiveRewriteCssImages []
 
static const char kInPlacePreemptiveRewriteImages []
 
static const char kInPlacePreemptiveRewriteJavascript []
 
static const char kInPlaceResourceOptimization []
 
static const char kInPlaceRewriteDeadlineMs []
 
static const char kInPlaceWaitForOptimized []
 
static const char kJsInlineMaxBytes []
 
static const char kJsOutlineMinBytes []
 
static const char kJsPreserveURLs []
 
static const char kLazyloadImagesAfterOnload []
 
static const char kLazyloadImagesBlankUrl []
 
static const char kLoadFromFileCacheTtlMs []
 
static const char kLogBackgroundRewrite []
 
static const char kLogRewriteTiming []
 
static const char kLogUrlIndices []
 
static const char kLowercaseHtmlNames []
 
static const char kMaxCacheableResponseContentLength []
 
static const char kMaxCombinedCssBytes []
 
static const char kMaxCombinedJsBytes []
 
static const char kMaxHtmlCacheTimeMs []
 
static const char kMaxHtmlParseBytes []
 
static const char kMaxImageBytesForWebpInCss []
 
static const char kMaxImageSizeLowResolutionBytes []
 
static const char kMaxInlinedPreviewImagesIndex []
 
static const char kMaxLowResImageSizeBytes []
 
static const char kMaxLowResToHighResImageSizePercentage []
 
static const char kMaxPrefetchJsElements []
 
static const char kMaxRewriteInfoLogSize []
 
static const char kMaxUrlSegmentSize []
 
static const char kMaxUrlSize []
 
static const char kMetadataCacheStalenessThresholdMs []
 
static const char kMinCacheTtlMs []
 
static const char kMinImageSizeLowResolutionBytes []
 
static const char kMinResourceCacheTimeToRewriteMs []
 
static const char kMobCxxLayout []
 
static const char kMobLayout []
 
static const char kMobLogo []
 
static const char kMobNav []
 
static const char kModifyCachingHeaders []
 
static const char kNoTransformOptimizedImages []
 
static const char kNonCacheablesForCachePartialHtml []
 
static const char kObliviousPagespeedUrls []
 
static const char kOptionCookiesDurationMs []
 
static const char kOverrideCachingTtlMs []
 
static const char kPersistBlinkBlacklist []
 
static const char kPreserveUrlRelativity []
 
static const char kPrivateNotVaryForIE []
 
static const char kPubliclyCacheMismatchedHashesExperimental []
 
static const char kProactivelyFreshenUserFacingRequest []
 
static const char kProactiveResourceFreshening []
 
static const char kProgressiveJpegMinBytes []
 
static const char kRejectBlacklisted []
 
static const char kRejectBlacklistedStatusCode []
 
static const char kReportUnloadTime []
 
static const char kRequestOptionOverride []
 
static const char kRespectVary []
 
static const char kRespectXForwardedProto []
 
static const char kRewriteDeadlineMs []
 
static const char kRewriteLevel []
 
static const char kRewriteRandomDropPercentage []
 
static const char kRewriteUncacheableResources []
 
static const char kRunningExperiment []
 
static const char kServeGhostClickBusterWithSplitHtml []
 
static const char kServeSplitHtmlInTwoChunks []
 
static const char kServeStaleIfFetchError []
 
static const char kServeStaleWhileRevalidateThresholdSec []
 
static const char kServeXhrAccessControlHeaders []
 
static const char kStickyQueryParameters []
 
static const char kSupportNoScriptEnabled []
 
static const char kTestOnlyPrioritizeCriticalCssDontApplyOriginalCss []
 
static const char kUrlSigningKey []
 
static const char kUseBlankImageForInlinePreview []
 
static const char kUseExperimentalJsMinifier []
 
static const char kUseFallbackPropertyCacheValues []
 
static const char kUseImageScanlineApi []
 
static const char kUseSelectorsForCriticalCss []
 
static const char kUseSmartDiffInBlink []
 
static const char kXModPagespeedHeaderValue []
 
static const char kXPsaBlockingRewrite []
 
static const char kAllow []
 Options that require special handling, e.g. non-scalar values.
 
static const char kBlockingRewriteRefererUrls []
 
static const char kDisableFilters []
 
static const char kDisallow []
 
static const char kDistributableFilters []
 For experimentation.
 
static const char kDomain []
 
static const char kDownstreamCachePurgeLocationPrefix []
 
static const char kEnableFilters []
 
static const char kExperimentVariable []
 
static const char kExperimentSpec []
 
static const char kForbidFilters []
 
static const char kInlineResourcesWithoutExplicitAuthorization []
 
static const char kRetainComment []
 
static const char kCustomFetchHeader []
 2-argument ones:
 
static const char kLoadFromFile []
 
static const char kLoadFromFileMatch []
 
static const char kLoadFromFileRule []
 
static const char kLoadFromFileRuleMatch []
 
static const char kMapOriginDomain []
 
static const char kMapProxyDomain []
 
static const char kMapRewriteDomain []
 
static const char kShardDomain []
 
static const char kLibrary []
 3-argument ones:
 
static const char kUrlValuedAttribute []
 
static const char kCacheFlushFilename []
 
static const char kCacheFlushPollIntervalSec []
 
static const char kCompressMetadataCache []
 
static const char kFetcherProxy []
 
static const char kFetchFromModSpdy []
 
static const char kFetchHttps []
 
static const char kFileCacheCleanInodeLimit []
 
static const char kFileCacheCleanIntervalMs []
 
static const char kFileCacheCleanSizeKb []
 
static const char kFileCachePath []
 
static const char kLogDir []
 
static const char kLruCacheByteLimit []
 
static const char kLruCacheKbPerProcess []
 
static const char kMemcachedServers []
 
static const char kMemcachedThreads []
 
static const char kMemcachedTimeoutUs []
 
static const char kProxySuffix []
 
static const char kRateLimitBackgroundFetches []
 
static const char kServeWebpToAnyAgent []
 
static const char kSlurpDirectory []
 
static const char kSlurpFlushLimit []
 
static const char kSlurpReadOnly []
 
static const char kSslCertDirectory []
 
static const char kSslCertFile []
 
static const char kStatisticsEnabled []
 
static const char kStatisticsLoggingChartsCSS []
 
static const char kStatisticsLoggingChartsJS []
 
static const char kStatisticsLoggingEnabled []
 
static const char kStatisticsLoggingIntervalMs []
 
static const char kStatisticsLoggingMaxFileSizeKb []
 
static const char kTestProxy []
 
static const char kTestProxySlurp []
 
static const char kUseSharedMemLocking []
 
static const char kNullOption []
 The option name you have when you don't have an option name.
 
static const int kOptionsVersion = 13
 
static const int kHashBytes = 20
 Number of bytes used for signature hashing.
 
static const int kCachePurgeBytes = 25000
 Number of bytes capacity in the URL invalidation set.
 
static const char kCacheExtenderId []
 
static const char kCollectFlushEarlyContentFilterId []
 
static const char kCssCombinerId []
 
static const char kCssFilterId []
 
static const char kCssImportFlattenerId []
 
static const char kCssInlineId []
 
static const char kGoogleFontCssInlineId []
 
static const char kImageCombineId []
 
static const char kImageCompressionId []
 
static const char kInPlaceRewriteId []
 
static const char kJavascriptCombinerId []
 
static const char kJavascriptInlineId []
 
static const char kJavascriptMinId []
 
static const char kJavascriptMinSourceMapId []
 
static const char kLocalStorageCacheId []
 
static const char kPrioritizeCriticalCssId []
 
static const char kPanelCommentPrefix []
 
static const Filter kFirstFilter = kAddBaseTag
 Used for enumerating over all entries in the Filter enum.
 
static const int kDefaultBeaconReinstrumentTimeSec
 
static const int64 kDefaultBlinkMaxHtmlSizeRewritable
 
static const int64 kDefaultCssFlattenMaxBytes
 
static const int64 kDefaultCssImageInlineMaxBytes
 
static const int64 kDefaultCssInlineMaxBytes
 
static const int64 kDefaultCssOutlineMinBytes
 
static const int64 kDefaultImageInlineMaxBytes
 
static const int64 kDefaultJsInlineMaxBytes
 
static const int64 kDefaultJsOutlineMinBytes
 
static const int64 kDefaultProgressiveJpegMinBytes
 
static const int64 kDefaultMaxCacheableResponseContentLength
 
static const int64 kDefaultMaxHtmlCacheTimeMs
 
static const int64 kDefaultMaxHtmlParseBytes
 
static const int64 kDefaultMaxImageBytesForWebpInCss
 
static const int64 kDefaultMaxLowResImageSizeBytes
 
static const int kDefaultMaxLowResToFullResImageSizePercentage
 
static const int64 kDefaultMetadataInputErrorsCacheTtlMs
 
static const int64 kDefaultMinResourceCacheTimeToRewriteMs
 
static const char kDefaultDownstreamCachePurgeMethod []
 
static const int64 kDefaultDownstreamCacheRewrittenPercentageThreshold
 
static const int64 kDefaultIdleFlushTimeMs
 
static const int64 kDefaultFlushBufferLimitBytes
 
static const int64 kDefaultImplicitCacheTtlMs
 
static const int64 kDefaultMinCacheTtlMs
 
static const int64 kDefaultPrioritizeVisibleContentCacheTimeMs
 
static const char kDefaultBeaconUrl []
 
static const int64 kDefaultImageRecompressQuality
 
static const int64 kDefaultImageJpegRecompressQuality
 
static const int64 kDefaultImageJpegRecompressQualityForSmallScreens
 
static const int kDefaultImageLimitOptimizedPercent
 
static const int kDefaultImageLimitRenderedAreaPercent
 
static const int kDefaultImageLimitResizeAreaPercent
 
static const int64 kDefaultImageResolutionLimitBytes
 
static const int64 kDefaultImageJpegNumProgressiveScans
 
static const int64 kDefaultImageWebpRecompressQuality
 
static const int64 kDefaultImageWebpRecompressQualityForSmallScreens
 
static const int64 kDefaultImageWebpTimeoutMs
 
static const int kDefaultDomainShardCount
 
static const int64 kDefaultBlinkHtmlChangeDetectionTimeMs
 
static const int kDefaultMaxPrefetchJsElements
 
static const int64 kDefaultOptionCookiesDurationMs
 
static const int64 kDefaultLoadFromFileCacheTtlMs
 
static const int kDefaultMaxUrlSize
 
static const int kDefaultImageMaxRewritesAtOnce
 
static const int kDefaultMaxUrlSegmentSize
 
static const int kDefaultRewriteDeadlineMs
 Default time to wait for rewrite before returning original resource.
 
static const int64 kDefaultDistributedTimeoutMs
 Default time to wait for a distributed rewrite to return.
 
static const int kDefaultMaxInlinedPreviewImagesIndex
 
static const int64 kDefaultMinImageSizeLowResolutionBytes
 
static const int64 kDefaultMaxImageSizeLowResolutionBytes
 
static const int64 kDefaultFinderPropertiesCacheExpirationTimeMs
 Default cache expiration value for finder properties in pcache.
 
static const int64 kDefaultFinderPropertiesCacheRefreshTimeMs
 Default cache refresh value for finder properties in pcache.
 
static const int64 kDefaultExperimentCookieDurationMs
 
static const int64 kDefaultMetadataCacheStalenessThresholdMs
 
static const int64 kDefaultMaxCombinedCssBytes
 Default maximum size of the combined CSS resource.
 
static const int64 kDefaultMaxCombinedJsBytes
 Default maximum size of the combined js resource generated by JsCombiner.
 
static const int kDefaultExperimentTrafficPercent
 
static const int kDefaultExperimentSlot
 Default Custom Variable slot in which to put Experiment information.
 
static const char kDefaultBlockingRewriteKey []
 
static const char kRejectedRequestUrlKeyName []
 
static const int kDefaultPropertyCacheHttpStatusStabilityThreshold
 
static const int kDefaultMaxRewriteInfoLogSize
 
- Protected Member Functions inherited from net_instaweb::RewriteOptions
void set_option_at (int index, OptionBase *option)
 
template<class T >
void set_option (const T &new_value, OptionTemplateBase< T > *option)
 
void Modify ()
 Marks the config as modified.
 
void set_default_x_header_value (const StringPiece &x_header_value)
 
bool SetupExperimentRewriters ()
 
virtual void SetRequiredExperimentFilters ()
 Enables filters needed by Experiment regardless of experiment.
 
bool InsertExperimentSpecInVector (ExperimentSpec *spec)
 
- Static Protected Member Functions inherited from net_instaweb::RewriteOptions
template<class RewriteOptionsSubclass , class OptionClass >
static void AddProperty (typename OptionClass::ValueType default_value, OptionClass RewriteOptionsSubclass::*offset, const char *id, StringPiece option_name, OptionScope scope, const char *help_text, bool safe_to_print, Properties *properties)
 Adds a new Property to 'properties' (the last argument).
 
static void MergeSubclassProperties (Properties *properties)
 
- Protected Attributes inherited from net_instaweb::RewriteOptions
Option< BeaconUrlbeacon_url_
 Protected option values so that derived class can modify.
 
Option< GoogleString > x_header_value_
 The value we put for the X-Mod-Pagespeed header. Default is our version.
 

Detailed Description

This manages configuration options specific to server implementations of pagespeed optimization libraries, such as mod_pagespeed and ngx_pagespeed.

Member Function Documentation

virtual SystemRewriteOptions* net_instaweb::SystemRewriteOptions::Clone ( ) const
virtual

Make an identical copy of these options and return it. This does not copy the signature, and the returned options are not in a frozen state.

Reimplemented from net_instaweb::RewriteOptions.

Reimplemented in net_instaweb::ApacheConfig.

StringPiece net_instaweb::SystemRewriteOptions::description ( ) const
inline

Human-readable description of what this configuration is for. This may be a directory, or a string indicating a combination of directives for multiple directories. Should only be used for debugging.

static const SystemRewriteOptions* net_instaweb::SystemRewriteOptions::DynamicCast ( const RewriteOptions instance)
static

Returns a suitably down cast version of 'instance' if it is an instance of this class, NULL if not.

bool net_instaweb::SystemRewriteOptions::test_proxy ( ) const
inline

If this is set to true, we'll turn on our fallback proxy-like behavior on non-.pagespeed. URLs without changing the main fetcher from Serf (the way the slurp options would).

GoogleString net_instaweb::SystemRewriteOptions::test_proxy_slurp ( ) const
inline

This configures the fetcher we use for fallback handling if test_proxy() is on:

  • If this is empty, we use the usual fetcher (e.g. Serf)
  • If it's non-empty, the fallback URLs will be fetched from the given slurp directory. PageSpeed resource fetches, however, will still use the usual fetcher (e.g. Serf).

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