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 "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
9 #include "third_party/WebKit/WebKit/chromium/public/WebApplicationCacheHostClien
t.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebApplicationCacheHostClien
t.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 AppCacheBackend* backend); | 28 AppCacheBackend* backend); |
29 virtual ~WebApplicationCacheHostImpl(); | 29 virtual ~WebApplicationCacheHostImpl(); |
30 | 30 |
31 int host_id() const { return host_id_; } | 31 int host_id() const { return host_id_; } |
32 AppCacheBackend* backend() const { return backend_; } | 32 AppCacheBackend* backend() const { return backend_; } |
33 WebKit::WebApplicationCacheHostClient* client() const { return client_; } | 33 WebKit::WebApplicationCacheHostClient* client() const { return client_; } |
34 | 34 |
35 void OnStatusChanged(appcache::Status); | 35 void OnStatusChanged(appcache::Status); |
36 void OnEventRaised(appcache::EventID); | 36 void OnEventRaised(appcache::EventID); |
37 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); | 37 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); |
| 38 void OnErrorEventRaised(const std::string& message); |
38 virtual void OnLogMessage(LogLevel log_level, const std::string& message) {} | 39 virtual void OnLogMessage(LogLevel log_level, const std::string& message) {} |
39 virtual void OnContentBlocked(const GURL& manifest_url) {} | 40 virtual void OnContentBlocked(const GURL& manifest_url) {} |
40 virtual void OnCacheSelected(int64 selected_cache_id, | 41 virtual void OnCacheSelected(int64 selected_cache_id, |
41 appcache::Status status); | 42 appcache::Status status); |
42 | 43 |
43 // WebApplicationCacheHost methods | 44 // WebApplicationCacheHost methods |
44 virtual void willStartMainResourceRequest(WebKit::WebURLRequest&); | 45 virtual void willStartMainResourceRequest(WebKit::WebURLRequest&); |
45 virtual void willStartSubResourceRequest(WebKit::WebURLRequest&); | 46 virtual void willStartSubResourceRequest(WebKit::WebURLRequest&); |
46 virtual void selectCacheWithoutManifest(); | 47 virtual void selectCacheWithoutManifest(); |
47 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); | 48 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); |
(...skipping 21 matching lines...) Expand all Loading... |
69 WebKit::WebURLResponse document_response_; | 70 WebKit::WebURLResponse document_response_; |
70 GURL document_url_; | 71 GURL document_url_; |
71 bool is_scheme_supported_; | 72 bool is_scheme_supported_; |
72 bool is_get_method_; | 73 bool is_get_method_; |
73 IsNewMasterEntry is_new_master_entry_; | 74 IsNewMasterEntry is_new_master_entry_; |
74 }; | 75 }; |
75 | 76 |
76 } // namespace | 77 } // namespace |
77 | 78 |
78 #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 79 #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
OLD | NEW |