17 #ifndef PAGESPEED_APACHE_APACHE_CONFIG_H_
18 #define PAGESPEED_APACHE_APACHE_CONFIG_H_
27 namespace net_instaweb {
33 static void Initialize();
34 static void Terminate();
50 StringPiece* redirect)
const;
52 void set_proxy_auth(StringPiece p) {
55 const GoogleString& proxy_auth()
const {
return proxy_auth_.value(); }
57 bool force_buffering()
const {
return force_buffering_.value(); }
58 void set_force_buffering(
bool x) {
set_option(x, &force_buffering_); }
60 bool proxy_all_requests_mode()
const {
61 return proxy_all_requests_mode_.value();
64 bool measurement_proxy_mode()
const {
65 return !measurement_proxy_root().empty() &&
66 !measurement_proxy_password().empty();
70 return measurement_proxy_root_.value();
74 return measurement_proxy_password_.value();
85 StringPiece name, StringPiece arg1, StringPiece arg2,
93 static Properties* apache_properties_;
96 template<
class OptionClass>
97 static void AddApacheProperty(
typename OptionClass::ValueType default_value,
100 StringPiece option_name,
102 bool safe_to_print) {
103 AddProperty(default_value, offset,
id, option_name,
108 static void AddProperties();
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).
Definition: rewrite_options.h:3167
virtual ApacheConfig * Clone() const
Make an identical copy of these options and return it.
bool GetProxyAuth(StringPiece *name, StringPiece *value, StringPiece *redirect) const
Definition: apache_config.h:31
virtual ApacheConfig * NewOptions() const
Make a new empty set of options.
StringPiece description() const
Definition: system_rewrite_options.h:379
Definition: system_rewrite_options.h:40
void set_option(const T &new_value, OptionTemplateBase< T > *option)
Definition: rewrite_options.h:3219
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
static const ApacheConfig * DynamicCast(const RewriteOptions *instance)
Definition: rewrite_options.h:633
void Merge(const RewriteOptions &src) override
Definition: thread_system.h:40
OptionSettingResult
Used for return value of SetOptionFromName.
Definition: rewrite_options.h:813
Definition: message_handler.h:39
GoogleString SubclassSignatureLockHeld() override
Definition: rewrite_options.h:84