Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
css_absolutify.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 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_REWRITER_PUBLIC_CSS_ABSOLUTIFY_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_CSS_ABSOLUTIFY_H_
21 
24 
25 namespace Css {
26 class Stylesheet;
27 class Declarations;
28 }
29 
30 namespace net_instaweb {
31 
32 class GoogleUrl;
33 class RewriteDriver;
34 class MessageHandler;
35 
37  public:
41  static bool AbsolutifyImports(Css::Stylesheet* stylesheet,
42  const GoogleUrl& base);
43 
52  static bool AbsolutifyUrls(Css::Stylesheet* stylesheet,
53  const GoogleUrl& base,
54  bool handle_parseable_ruleset_sections,
55  bool handle_unparseable_sections,
56  RewriteDriver* driver,
57  MessageHandler* handler);
58 
59  private:
60  static bool AbsolutifyDeclarations(Css::Declarations* decls,
61  CssTagScanner::Transformer* transformer,
62  bool handle_parseable_sections,
63  bool handle_unparseable_sections,
64  MessageHandler* handler);
65 
66 
67 };
68 
69 }
70 
71 #endif
class GoogleUrl
Definition: google_url.h:58
Definition: css_tag_scanner.h:39
static bool AbsolutifyUrls(Css::Stylesheet *stylesheet, const GoogleUrl &base, bool handle_parseable_ruleset_sections, bool handle_unparseable_sections, RewriteDriver *driver, MessageHandler *handler)
static bool AbsolutifyImports(Css::Stylesheet *stylesheet, const GoogleUrl &base)
Definition: css_absolutify.h:36
Definition: rewrite_driver.h:100
Definition: message_handler.h:39