| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 5 #ifndef CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| 6 #define CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 6 #define CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "third_party/WebKit/public/platform/WebApplicationCacheHost.h" | 10 #include "third_party/WebKit/public/platform/WebApplicationCacheHost.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 virtual ~WebApplicationCacheHostImpl(); | 27 virtual ~WebApplicationCacheHostImpl(); |
| 28 | 28 |
| 29 int host_id() const { return host_id_; } | 29 int host_id() const { return host_id_; } |
| 30 appcache::AppCacheBackend* backend() const { return backend_; } | 30 appcache::AppCacheBackend* backend() const { return backend_; } |
| 31 blink::WebApplicationCacheHostClient* client() const { return client_; } | 31 blink::WebApplicationCacheHostClient* client() const { return client_; } |
| 32 | 32 |
| 33 virtual void OnCacheSelected(const appcache::AppCacheInfo& info); | 33 virtual void OnCacheSelected(const appcache::AppCacheInfo& info); |
| 34 void OnStatusChanged(appcache::Status); | 34 void OnStatusChanged(appcache::Status); |
| 35 void OnEventRaised(appcache::EventID); | 35 void OnEventRaised(appcache::EventID); |
| 36 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); | 36 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); |
| 37 void OnErrorEventRaised(const std::string& message); | 37 void OnErrorEventRaised(const std::string& message, |
| 38 const std::string& reason, |
| 39 const GURL& url, |
| 40 int status); |
| 38 virtual void OnLogMessage(appcache::LogLevel log_level, | 41 virtual void OnLogMessage(appcache::LogLevel log_level, |
| 39 const std::string& message) {} | 42 const std::string& message) {} |
| 40 virtual void OnContentBlocked(const GURL& manifest_url) {} | 43 virtual void OnContentBlocked(const GURL& manifest_url) {} |
| 41 | 44 |
| 42 // blink::WebApplicationCacheHost: | 45 // blink::WebApplicationCacheHost: |
| 43 virtual void willStartMainResourceRequest( | 46 virtual void willStartMainResourceRequest( |
| 44 blink::WebURLRequest&, const blink::WebApplicationCacheHost*); | 47 blink::WebURLRequest&, const blink::WebApplicationCacheHost*); |
| 45 virtual void willStartSubResourceRequest(blink::WebURLRequest&); | 48 virtual void willStartSubResourceRequest(blink::WebURLRequest&); |
| 46 virtual void selectCacheWithoutManifest(); | 49 virtual void selectCacheWithoutManifest(); |
| 47 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL); | 50 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 71 bool is_get_method_; | 74 bool is_get_method_; |
| 72 IsNewMasterEntry is_new_master_entry_; | 75 IsNewMasterEntry is_new_master_entry_; |
| 73 appcache::AppCacheInfo cache_info_; | 76 appcache::AppCacheInfo cache_info_; |
| 74 GURL original_main_resource_url_; // Used to detect redirection. | 77 GURL original_main_resource_url_; // Used to detect redirection. |
| 75 bool was_select_cache_called_; | 78 bool was_select_cache_called_; |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 } // namespace content | 81 } // namespace content |
| 79 | 82 |
| 80 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 83 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| OLD | NEW |