OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 5 #ifndef WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
6 #define WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 6 #define WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 virtual void OnCacheSelected(const appcache::AppCacheInfo& info); | 38 virtual void OnCacheSelected(const appcache::AppCacheInfo& info); |
39 void OnStatusChanged(appcache::Status); | 39 void OnStatusChanged(appcache::Status); |
40 void OnEventRaised(appcache::EventID); | 40 void OnEventRaised(appcache::EventID); |
41 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); | 41 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); |
42 void OnErrorEventRaised(const std::string& message); | 42 void OnErrorEventRaised(const std::string& message); |
43 virtual void OnLogMessage(LogLevel log_level, const std::string& message) {} | 43 virtual void OnLogMessage(LogLevel log_level, const std::string& message) {} |
44 virtual void OnContentBlocked(const GURL& manifest_url) {} | 44 virtual void OnContentBlocked(const GURL& manifest_url) {} |
45 | 45 |
46 // WebApplicationCacheHost methods | 46 // WebApplicationCacheHost methods |
47 virtual void willStartMainResourceRequest(WebKit::WebURLRequest&); | 47 virtual void willStartMainResourceRequest(WebKit::WebURLRequest&, |
| 48 const WebKit::WebFrame*); |
48 virtual void willStartSubResourceRequest(WebKit::WebURLRequest&); | 49 virtual void willStartSubResourceRequest(WebKit::WebURLRequest&); |
49 virtual void selectCacheWithoutManifest(); | 50 virtual void selectCacheWithoutManifest(); |
50 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); | 51 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); |
51 virtual void didReceiveResponseForMainResource(const WebKit::WebURLResponse&); | 52 virtual void didReceiveResponseForMainResource(const WebKit::WebURLResponse&); |
52 virtual void didReceiveDataForMainResource(const char* data, int len); | 53 virtual void didReceiveDataForMainResource(const char* data, int len); |
53 virtual void didFinishLoadingMainResource(bool success); | 54 virtual void didFinishLoadingMainResource(bool success); |
54 virtual WebKit::WebApplicationCacheHost::Status status(); | 55 virtual WebKit::WebApplicationCacheHost::Status status(); |
55 virtual bool startUpdate(); | 56 virtual bool startUpdate(); |
56 virtual bool swapCache(); | 57 virtual bool swapCache(); |
57 virtual void getResourceList(WebKit::WebVector<ResourceInfo>* resources); | 58 virtual void getResourceList(WebKit::WebVector<ResourceInfo>* resources); |
(...skipping 17 matching lines...) Expand all Loading... |
75 IsNewMasterEntry is_new_master_entry_; | 76 IsNewMasterEntry is_new_master_entry_; |
76 appcache::AppCacheInfo cache_info_; | 77 appcache::AppCacheInfo cache_info_; |
77 GURL original_main_resource_url_; // Used to detect redirection. | 78 GURL original_main_resource_url_; // Used to detect redirection. |
78 bool was_select_cache_called_; | 79 bool was_select_cache_called_; |
79 }; | 80 }; |
80 | 81 |
81 } // namespace | 82 } // namespace |
82 | 83 |
83 #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 84 #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
84 | 85 |
OLD | NEW |