Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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"
29 
30 namespace net_instaweb {
31 struct ContentType;
32 class RequestHeaders;
33 class RewriteDriver;
34 class Statistics;
35 
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,
50 
51  virtual void PrepareRequest(const RequestContextPtr& request_context,
52  RequestHeaders* headers);
53 
60  GoogleString origin_;
61 
62 
63 };
64 
65 }
66 
67 #endif
Read/write API for HTTP request (RequestHeaders is a misnomer).
Definition: request_headers.h:32
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
bool is_authorized_domain()
Definition: resource.h:86
Definition: url_input_resource.h:36
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: rewrite_driver.h:100
Definition: content_type.h:31
virtual ~UrlInputResource()
Created only from RewriteDriver::CreateInputResource*.
Definition: cacheable_resource_base.h:50
virtual GoogleString url() const
Gets the absolute URL of the resource.
Definition: cacheable_resource_base.h:66