Page Speed Optimization Libraries  1.9.32.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cache_html_info_finder.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013 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_CACHE_HTML_INFO_FINDER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_CACHE_HTML_INFO_FINDER_H_
21 
22 #include "net/instaweb/http/public/user_agent_matcher.h"
25 
26 namespace net_instaweb {
27 
28 class AbstractLogRecord;
29 class RewriteDriver;
30 class RewriteDriverFactory;
31 
34  public:
36  virtual ~CacheHtmlInfoFinder() { }
37 
38  virtual void PropagateCacheDeletes(const GoogleString& url, int experiment_id,
39  UserAgentMatcher::DeviceType device_type);
40 
41  virtual bool UpdateDiffInfo(
42  bool is_diff, int64 now_ms, AbstractLogRecord* cache_html_log_record,
43  RewriteDriver* rewrite_driver, RewriteDriverFactory* factory);
44 
46  virtual void UpdateSplitInfoInDriver(RewriteDriver* driver) {}
47 
48  private:
49  DISALLOW_COPY_AND_ASSIGN(CacheHtmlInfoFinder);
50 };
51 
52 }
53 
54 #endif
virtual void UpdateSplitInfoInDriver(RewriteDriver *driver)
Updates the driver with the split html information from the pcache.
Definition: cache_html_info_finder.h:46
Definition: log_record.h:61
Manages the cache lifetimes of CacheHtmlInfo.
Definition: cache_html_info_finder.h:33
Definition: rewrite_driver.h:98
Definition: rewrite_driver_factory.h:73