Page Speed Optimization Libraries  1.9.32.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 
23 
24 namespace Css {
25 class Stylesheet;
26 }
27 
28 namespace net_instaweb {
29 
30 class GoogleUrl;
31 class RewriteDriver;
32 class MessageHandler;
33 
35  public:
39  static bool AbsolutifyImports(Css::Stylesheet* stylesheet,
40  const GoogleUrl& base);
41 
47  static bool AbsolutifyUrls(Css::Stylesheet* stylesheet,
48  const GoogleUrl& base,
49  bool handle_parseable_sections,
50  bool handle_unparseable_sections,
51  RewriteDriver* driver,
52  MessageHandler* handler);
53 
54  private:
55  DISALLOW_COPY_AND_ASSIGN(CssAbsolutify);
56 };
57 
58 }
59 
60 #endif
static bool AbsolutifyImports(Css::Stylesheet *stylesheet, const GoogleUrl &base)
Definition: css_absolutify.h:34
Definition: rewrite_driver.h:98
static bool AbsolutifyUrls(Css::Stylesheet *stylesheet, const GoogleUrl &base, bool handle_parseable_sections, bool handle_unparseable_sections, RewriteDriver *driver, MessageHandler *handler)