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
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
30
#include "
net/instaweb/config/rewrite_options_manager.h
"
31
32
#include "
net/instaweb/rewriter/public/rewrite_options.h
"
33
#include "
pagespeed/kernel/base/basictypes.h
"
34
#include "
pagespeed/kernel/base/string.h
"
35
#include "
pagespeed/kernel/base/string_util.h
"
36
#include "
pagespeed/kernel/http/google_url.h
"
37
#include "
pagespeed/kernel/http/request_headers.h
"
38
39
namespace
net_instaweb {
40
41
class
ServerContext
;
42
43
class
MeasurementProxyRewriteOptionsManager
:
public
RewriteOptionsManager
{
44
public
:
45
MeasurementProxyRewriteOptionsManager
(
const
ServerContext
* server_context,
46
const
GoogleString
& root_domain,
47
const
GoogleString
& password);
48
~
MeasurementProxyRewriteOptionsManager
()
override
{}
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
net_instaweb::GoogleUrl
class GoogleUrl
Definition:
google_url.h:58
net_instaweb::MeasurementProxyRewriteOptionsManager
Definition:
measurement_proxy_rewrite_options_manager.h:43
string.h
net_instaweb::RequestHeaders
Read/write API for HTTP request (RequestHeaders is a misnomer).
Definition:
request_headers.h:32
string_util.h
GoogleString
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition:
string.h:24
request_headers.h
rewrite_options_manager.h
rewrite_options.h
net_instaweb::ServerContext
Definition:
server_context.h:99
net_instaweb::RewriteOptionsManager
Definition:
rewrite_options_manager.h:32
net_instaweb::RewriteOptions
Definition:
rewrite_options.h:84
basictypes.h
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