Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
css_url_encoder.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011 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  */
17 
18 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_CSS_URL_ENCODER_H_
19 #define NET_INSTAWEB_REWRITER_PUBLIC_CSS_URL_ENCODER_H_
20 
25 
26 namespace net_instaweb {
27 
28 class RequestProperties;
29 class MessageHandler;
30 class ResourceContext;
31 
50  public:
51  CssUrlEncoder() {}
52  virtual ~CssUrlEncoder();
53 
54  virtual void Encode(const StringVector& urls,
55  const ResourceContext* encoding,
56  GoogleString* rewritten_url) const;
57 
58  virtual bool Decode(const StringPiece& url_segment,
59  StringVector* urls,
60  ResourceContext* dim,
61  MessageHandler* handler) const;
62 
64  static void SetInliningImages(const RequestProperties& request_properties,
65  ResourceContext* resource_context);
66 
67  private:
68 
69 };
70 
71 }
72 
73 #endif
virtual bool Decode(const StringPiece &url_segment, StringVector *urls, ResourceContext *dim, MessageHandler *handler) const
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual void Encode(const StringVector &urls, const ResourceContext *encoding, GoogleString *rewritten_url) const
Definition: url_segment_encoder.h:33
Definition: message_handler.h:39
Definition: css_url_encoder.h:49
static void SetInliningImages(const RequestProperties &request_properties, ResourceContext *resource_context)
Sets Inlining of image according to the user agent.
Definition: request_properties.h:37