Page Speed Optimization Libraries
1.13.35.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
net
instaweb
config
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
22
#include "
net/instaweb/rewriter/public/rewrite_options.h
"
23
#include "
pagespeed/kernel/base/callback.h
"
24
#include "
pagespeed/kernel/base/string.h
"
25
#include "
pagespeed/kernel/http/google_url.h
"
26
#include "
pagespeed/kernel/http/request_headers.h
"
27
#include "
pagespeed/opt/http/request_context.h
"
28
29
30
namespace
net_instaweb {
31
32
class
RewriteOptionsManager
{
33
public
:
34
RewriteOptionsManager
() {}
35
virtual
~
RewriteOptionsManager
() {}
36
38
typedef
Callback1<RewriteOptions*>
OptionsCallback
;
39
virtual
void
GetRewriteOptions(
const
GoogleUrl
& url,
40
const
RequestHeaders
& headers,
41
OptionsCallback
* done);
42
47
typedef
Callback1<bool>
BoolCallback
;
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
net_instaweb::GoogleUrl
class GoogleUrl
Definition:
google_url.h:58
string.h
net_instaweb::RequestHeaders
Read/write API for HTTP request (RequestHeaders is a misnomer).
Definition:
request_headers.h:32
request_context.h
net_instaweb::RewriteOptionsManager::BoolCallback
Callback1< bool > BoolCallback
Definition:
rewrite_options_manager.h:47
callback.h
net_instaweb::RefCountedPtr< RequestContext >
GoogleString
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition:
string.h:24
request_headers.h
rewrite_options.h
net_instaweb::RewriteOptionsManager
Definition:
rewrite_options_manager.h:32
net_instaweb::RewriteOptions
Definition:
rewrite_options.h:84
net_instaweb::RewriteOptionsManager::OptionsCallback
Callback1< RewriteOptions * > OptionsCallback
Given the request url and request headers, generate the rewrite options.
Definition:
rewrite_options_manager.h:38
net_instaweb::Callback1
Definition:
callback.h:44
google_url.h
Generated on Fri Nov 3 2017 20:10:39 for Page Speed Optimization Libraries by
1.8.6