00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00018
00019 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_GFLAGS_H_
00020 #define NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_GFLAGS_H_
00021
00022 #include "net/instaweb/util/public/basictypes.h"
00023
00024 namespace net_instaweb {
00025
00026 class MessageHandler;
00027 class RewriteDriverFactory;
00028 class RewriteOptions;
00029
00032 class RewriteGflags {
00033 public:
00035 RewriteGflags(const char* progname, int* argc, char*** argv);
00036
00040 RewriteGflags() {}
00041
00046 bool SetOptions(RewriteDriverFactory* factory, RewriteOptions* options) const;
00047
00050 int64 lru_cache_size_bytes() const;
00051
00054 bool WasExplicitlySet(const char* name) const;
00055
00061 bool SetRewriters(const char* rewriters_flag_name,
00062 const char* rewriters_value,
00063 const char* rewrite_level_flag_name,
00064 const char* rewrite_level_value,
00065 RewriteOptions* options,
00066 MessageHandler* handler) const;
00067
00068 private:
00071
00072 DISALLOW_COPY_AND_ASSIGN(RewriteGflags);
00073 };
00074
00075 }
00076
00077 #endif ///< NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_GFLAGS_H_