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
rewriter
public
url_input_resource.h
Go to the documentation of this file.
1
/*
2
* Copyright 2010 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
20
21
#ifndef NET_INSTAWEB_REWRITER_PUBLIC_URL_INPUT_RESOURCE_H_
22
#define NET_INSTAWEB_REWRITER_PUBLIC_URL_INPUT_RESOURCE_H_
23
24
#include "net/instaweb/http/public/request_context.h"
25
#include "
net/instaweb/rewriter/public/cacheable_resource_base.h
"
26
#include "
pagespeed/kernel/base/basictypes.h
"
27
#include "
pagespeed/kernel/base/string.h
"
28
#include "
pagespeed/kernel/base/string_util.h
"
29
30
namespace
net_instaweb {
31
struct
ContentType;
32
class
RequestHeaders;
33
class
RewriteDriver;
34
class
Statistics;
35
36
class
UrlInputResource
:
public
CacheableResourceBase
{
37
public
:
39
virtual
~UrlInputResource
();
40
41
static
void
InitStats(
Statistics
* stats);
42
43
private
:
44
friend
class
RewriteDriver
;
45
friend
class
UrlInputResourceTest;
46
UrlInputResource
(
RewriteDriver
* rewrite_driver,
47
const
ContentType
* type,
48
const
StringPiece&
url
,
49
bool
is_authorized_domain
);
50
51
virtual
void
PrepareRequest(
const
RequestContextPtr
& request_context,
52
RequestHeaders
* headers);
53
60
GoogleString
origin_;
61
62
63
};
64
65
}
66
67
#endif
cacheable_resource_base.h
string.h
net_instaweb::RequestHeaders
Read/write API for HTTP request (RequestHeaders is a misnomer).
Definition:
request_headers.h:32
net_instaweb::Statistics
Base class for implementations of monitoring statistics.
Definition:
statistics.h:342
net_instaweb::Resource::is_authorized_domain
bool is_authorized_domain()
Definition:
resource.h:86
string_util.h
net_instaweb::RefCountedPtr< RequestContext >
net_instaweb::UrlInputResource
Definition:
url_input_resource.h:36
GoogleString
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition:
string.h:24
net_instaweb::RewriteDriver
Definition:
rewrite_driver.h:100
net_instaweb::ContentType
Definition:
content_type.h:31
net_instaweb::UrlInputResource::~UrlInputResource
virtual ~UrlInputResource()
Created only from RewriteDriver::CreateInputResource*.
net_instaweb::CacheableResourceBase
Definition:
cacheable_resource_base.h:50
net_instaweb::CacheableResourceBase::url
virtual GoogleString url() const
Gets the absolute URL of the resource.
Definition:
cacheable_resource_base.h:66
basictypes.h
Generated on Fri Nov 3 2017 20:10:40 for Page Speed Optimization Libraries by
1.8.6