| 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 28 matching lines...) Expand all Loading... |
| 39 const std::string& message) {} | 39 const std::string& message) {} |
| 40 virtual void OnContentBlocked(const GURL& manifest_url) {} | 40 virtual void OnContentBlocked(const GURL& manifest_url) {} |
| 41 | 41 |
| 42 // blink::WebApplicationCacheHost: | 42 // blink::WebApplicationCacheHost: |
| 43 virtual void willStartMainResourceRequest( | 43 virtual void willStartMainResourceRequest( |
| 44 blink::WebURLRequest&, const blink::WebApplicationCacheHost*); | 44 blink::WebURLRequest&, const blink::WebApplicationCacheHost*); |
| 45 virtual void willStartSubResourceRequest(blink::WebURLRequest&); | 45 virtual void willStartSubResourceRequest(blink::WebURLRequest&); |
| 46 virtual void selectCacheWithoutManifest(); | 46 virtual void selectCacheWithoutManifest(); |
| 47 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL); | 47 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL); |
| 48 virtual void didReceiveResponseForMainResource(const blink::WebURLResponse&); | 48 virtual void didReceiveResponseForMainResource(const blink::WebURLResponse&); |
| 49 // TODO(tyoshino): Revive didReceiveDataForMainResource once Blink side | 49 virtual void didReceiveDataForMainResource(const char* data, unsigned len); |
| 50 // refactoring is done. See crbug.com/418885. | |
| 51 virtual void didFinishLoadingMainResource(bool success); | 50 virtual void didFinishLoadingMainResource(bool success); |
| 52 virtual blink::WebApplicationCacheHost::Status status(); | 51 virtual blink::WebApplicationCacheHost::Status status(); |
| 53 virtual bool startUpdate(); | 52 virtual bool startUpdate(); |
| 54 virtual bool swapCache(); | 53 virtual bool swapCache(); |
| 55 virtual void getResourceList(blink::WebVector<ResourceInfo>* resources); | 54 virtual void getResourceList(blink::WebVector<ResourceInfo>* resources); |
| 56 virtual void getAssociatedCacheInfo(CacheInfo* info); | 55 virtual void getAssociatedCacheInfo(CacheInfo* info); |
| 57 | 56 |
| 58 private: | 57 private: |
| 59 enum IsNewMasterEntry { | 58 enum IsNewMasterEntry { |
| 60 MAYBE, | 59 MAYBE, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 bool is_get_method_; | 71 bool is_get_method_; |
| 73 IsNewMasterEntry is_new_master_entry_; | 72 IsNewMasterEntry is_new_master_entry_; |
| 74 AppCacheInfo cache_info_; | 73 AppCacheInfo cache_info_; |
| 75 GURL original_main_resource_url_; // Used to detect redirection. | 74 GURL original_main_resource_url_; // Used to detect redirection. |
| 76 bool was_select_cache_called_; | 75 bool was_select_cache_called_; |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 } // namespace content | 78 } // namespace content |
| 80 | 79 |
| 81 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 80 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| OLD | NEW |