Page Speed Optimization Libraries  1.11.33.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
render_blocking_html_computation.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015 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_RENDER_BLOCKING_HTML_COMPUTATION_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_RENDER_BLOCKING_HTML_COMPUTATION_H_
21 
22 #include "pagespeed/kernel/base/basictypes.h"
23 #include "pagespeed/kernel/base/string.h"
24 
25 namespace net_instaweb {
26 
27 class RewriteDriver;
28 
39  public:
40  explicit RenderBlockingHtmlComputation(RewriteDriver* parent_driver);
42 
50  void Compute(const GoogleString& url);
51 
52  protected:
53  virtual void SetupFilters(RewriteDriver* child_driver) = 0;
54 
60  virtual void Done(bool success) = 0;
61 
62  private:
63  class ResourceCallback;
64  void ReportResult(bool success);
65 
66  RewriteDriver* parent_driver_;
67 
68 
69 };
70 
71 
72 }
73 
74 #endif
virtual void Done(bool success)=0
Definition: render_blocking_html_computation.h:38
Definition: rewrite_driver.h:98
void Compute(const GoogleString &url)