Page Speed Optimization Libraries  1.9.32.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rewrite_gflags.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http:///www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
18 
19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_GFLAGS_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_REWRITE_GFLAGS_H_
21 
23 
24 namespace net_instaweb {
25 
26 class MessageHandler;
27 class RewriteDriverFactory;
28 class RewriteOptions;
29 
33  public:
35  RewriteGflags(const char* progname, int* argc, char*** argv);
36 
39 
44  bool SetOptions(RewriteDriverFactory* factory, RewriteOptions* options) const;
45 
48  int64 lru_cache_size_bytes() const;
49 
52  static bool WasExplicitlySet(const char* name);
53 
59  bool SetRewriters(const char* rewriters_flag_name,
60  const char* rewriters_value,
61  const char* rewrite_level_flag_name,
62  const char* rewrite_level_value,
63  RewriteOptions* options,
64  MessageHandler* handler) const;
65 
66  private:
69 
70  DISALLOW_COPY_AND_ASSIGN(RewriteGflags);
71 };
72 
73 }
74 
75 #endif
int64 lru_cache_size_bytes() const
bool SetOptions(RewriteDriverFactory *factory, RewriteOptions *options) const
RewriteGflags()
Constructor that does no option parsing.
Definition: rewrite_gflags.h:38
Definition: rewrite_gflags.h:32
bool SetRewriters(const char *rewriters_flag_name, const char *rewriters_value, const char *rewrite_level_flag_name, const char *rewrite_level_value, RewriteOptions *options, MessageHandler *handler) const
static bool WasExplicitlySet(const char *name)
Definition: rewrite_options.h:81
Definition: rewrite_driver_factory.h:73