| 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 "content/common/appcache_interfaces.h" | 10 #include "content/common/appcache_interfaces.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void SelectCacheWithoutManifest() override; | 48 void SelectCacheWithoutManifest() override; |
| 49 bool SelectCacheWithManifest(const blink::WebURL& manifestURL) override; | 49 bool SelectCacheWithManifest(const blink::WebURL& manifestURL) override; |
| 50 void DidReceiveResponseForMainResource(const blink::WebURLResponse&) override; | 50 void DidReceiveResponseForMainResource(const blink::WebURLResponse&) override; |
| 51 void DidReceiveDataForMainResource(const char* data, unsigned len) override; | 51 void DidReceiveDataForMainResource(const char* data, unsigned len) override; |
| 52 void DidFinishLoadingMainResource(bool success) override; | 52 void DidFinishLoadingMainResource(bool success) override; |
| 53 blink::WebApplicationCacheHost::Status GetStatus() override; | 53 blink::WebApplicationCacheHost::Status GetStatus() override; |
| 54 bool StartUpdate() override; | 54 bool StartUpdate() override; |
| 55 bool SwapCache() override; | 55 bool SwapCache() override; |
| 56 void GetResourceList(blink::WebVector<ResourceInfo>* resources) override; | 56 void GetResourceList(blink::WebVector<ResourceInfo>* resources) override; |
| 57 void GetAssociatedCacheInfo(CacheInfo* info) override; | 57 void GetAssociatedCacheInfo(CacheInfo* info) override; |
| 58 int GetHostID() const override; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 enum IsNewMasterEntry { MAYBE_NEW_ENTRY, NEW_ENTRY, OLD_ENTRY }; | 61 enum IsNewMasterEntry { MAYBE_NEW_ENTRY, NEW_ENTRY, OLD_ENTRY }; |
| 61 | 62 |
| 62 blink::WebApplicationCacheHostClient* client_; | 63 blink::WebApplicationCacheHostClient* client_; |
| 63 AppCacheBackend* backend_; | 64 AppCacheBackend* backend_; |
| 64 int host_id_; | 65 int host_id_; |
| 65 AppCacheStatus status_; | 66 AppCacheStatus status_; |
| 66 blink::WebURLResponse document_response_; | 67 blink::WebURLResponse document_response_; |
| 67 GURL document_url_; | 68 GURL document_url_; |
| 68 bool is_scheme_supported_; | 69 bool is_scheme_supported_; |
| 69 bool is_get_method_; | 70 bool is_get_method_; |
| 70 IsNewMasterEntry is_new_master_entry_; | 71 IsNewMasterEntry is_new_master_entry_; |
| 71 AppCacheInfo cache_info_; | 72 AppCacheInfo cache_info_; |
| 72 GURL original_main_resource_url_; // Used to detect redirection. | 73 GURL original_main_resource_url_; // Used to detect redirection. |
| 73 bool was_select_cache_called_; | 74 bool was_select_cache_called_; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace content | 77 } // namespace content |
| 77 | 78 |
| 78 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 79 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| OLD | NEW |