Chromium Code Reviews| 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/WebURLResponse.h" | 10 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 void OnEventRaised(appcache::EventID); | 41 void OnEventRaised(appcache::EventID); |
| 42 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); | 42 void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); |
| 43 void OnErrorEventRaised(const std::string& message); | 43 void OnErrorEventRaised(const std::string& message); |
| 44 virtual void OnLogMessage(appcache::LogLevel log_level, | 44 virtual void OnLogMessage(appcache::LogLevel log_level, |
| 45 const std::string& message) {} | 45 const std::string& message) {} |
| 46 virtual void OnContentBlocked(const GURL& manifest_url) {} | 46 virtual void OnContentBlocked(const GURL& manifest_url) {} |
| 47 | 47 |
| 48 // blink::WebApplicationCacheHost: | 48 // blink::WebApplicationCacheHost: |
| 49 virtual void willStartMainResourceRequest(blink::WebURLRequest&, | 49 virtual void willStartMainResourceRequest(blink::WebURLRequest&, |
| 50 const blink::WebFrame*); | 50 const blink::WebFrame*); |
| 51 virtual void willStartMainResourceRequest( | |
| 52 blink::WebURLRequest&, const blink::WebApplicationCacheHost*); | |
|
michaeln
2014/02/13 01:09:20
oh... can you also override this method to do noth
adamk
2014/02/13 18:46:01
Done.
| |
| 51 virtual void willStartSubResourceRequest(blink::WebURLRequest&); | 53 virtual void willStartSubResourceRequest(blink::WebURLRequest&); |
| 52 virtual void selectCacheWithoutManifest(); | 54 virtual void selectCacheWithoutManifest(); |
| 53 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL); | 55 virtual bool selectCacheWithManifest(const blink::WebURL& manifestURL); |
| 54 virtual void didReceiveResponseForMainResource(const blink::WebURLResponse&); | 56 virtual void didReceiveResponseForMainResource(const blink::WebURLResponse&); |
| 55 virtual void didReceiveDataForMainResource(const char* data, int len); | 57 virtual void didReceiveDataForMainResource(const char* data, int len); |
| 56 virtual void didFinishLoadingMainResource(bool success); | 58 virtual void didFinishLoadingMainResource(bool success); |
| 57 virtual blink::WebApplicationCacheHost::Status status(); | 59 virtual blink::WebApplicationCacheHost::Status status(); |
| 58 virtual bool startUpdate(); | 60 virtual bool startUpdate(); |
| 59 virtual bool swapCache(); | 61 virtual bool swapCache(); |
| 60 virtual void getResourceList(blink::WebVector<ResourceInfo>* resources); | 62 virtual void getResourceList(blink::WebVector<ResourceInfo>* resources); |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 77 bool is_get_method_; | 79 bool is_get_method_; |
| 78 IsNewMasterEntry is_new_master_entry_; | 80 IsNewMasterEntry is_new_master_entry_; |
| 79 appcache::AppCacheInfo cache_info_; | 81 appcache::AppCacheInfo cache_info_; |
| 80 GURL original_main_resource_url_; // Used to detect redirection. | 82 GURL original_main_resource_url_; // Used to detect redirection. |
| 81 bool was_select_cache_called_; | 83 bool was_select_cache_called_; |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace content | 86 } // namespace content |
| 85 | 87 |
| 86 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 88 #endif // CONTENT_CHILD_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| OLD | NEW |