Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rewrite_options_manager.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013 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_CONFIG_REWRITE_OPTIONS_MANAGER_H_
20 #define NET_INSTAWEB_CONFIG_REWRITE_OPTIONS_MANAGER_H_
21 
28 
29 
30 namespace net_instaweb {
31 
33  public:
35  virtual ~RewriteOptionsManager() {}
36 
39  virtual void GetRewriteOptions(const GoogleUrl& url,
40  const RequestHeaders& headers,
41  OptionsCallback* done);
42 
48  virtual void PrepareRequest(const RewriteOptions* rewrite_options,
49  const RequestContextPtr& request_context,
50  GoogleString* url,
51  RequestHeaders* request_headers,
52  BoolCallback* done);
53 };
54 
55 }
56 
57 #endif
class GoogleUrl
Definition: google_url.h:58
Read/write API for HTTP request (RequestHeaders is a misnomer).
Definition: request_headers.h:32
Callback1< bool > BoolCallback
Definition: rewrite_options_manager.h:47
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: rewrite_options_manager.h:32
Definition: rewrite_options.h:84
Callback1< RewriteOptions * > OptionsCallback
Given the request url and request headers, generate the rewrite options.
Definition: rewrite_options_manager.h:38
Definition: callback.h:44