Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
measurement_proxy_rewrite_options_manager.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 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 
25 
26 
27 #ifndef NET_INSTAWEB_CONFIG_MEASUREMENT_PROXY_REWRITE_OPTIONS_MANAGER_H_
28 #define NET_INSTAWEB_CONFIG_MEASUREMENT_PROXY_REWRITE_OPTIONS_MANAGER_H_
29 
31 
38 
39 namespace net_instaweb {
40 
41 class ServerContext;
42 
44  public:
46  const GoogleString& root_domain,
47  const GoogleString& password);
49 
50  void GetRewriteOptions(const GoogleUrl& url,
51  const RequestHeaders& headers,
52  OptionsCallback* done) override;
53 
54  private:
55  void Force403(RewriteOptions* options);
56  void ApplyConfig(const GoogleUrl& decoded_url, StringPiece config,
57  StringPiece config_domain, RewriteOptions* options);
58 
59  const ServerContext* server_context_;
60  GoogleString root_domain_;
61  GoogleString password_;
62 
63 
64 };
65 
66 }
67 
68 #endif
class GoogleUrl
Definition: google_url.h:58
Definition: measurement_proxy_rewrite_options_manager.h:43
Read/write API for HTTP request (RequestHeaders is a misnomer).
Definition: request_headers.h:32
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: server_context.h:99
Definition: rewrite_options_manager.h:32
Definition: rewrite_options.h:84
Definition: callback.h:44