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 CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 5 #ifndef CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
6 #define CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 6 #define CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "webkit/appcache/web_application_cache_host_impl.h" | 9 #include "webkit/appcache/web_application_cache_host_impl.h" |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 // loaded by the creator of the worker rather than the worker itself. | 38 // loaded by the creator of the worker rather than the worker itself. |
39 virtual void willStartMainResourceRequest(WebKit::WebURLRequest&) {} | 39 virtual void willStartMainResourceRequest(WebKit::WebURLRequest&) {} |
40 virtual void didReceiveResponseForMainResource( | 40 virtual void didReceiveResponseForMainResource( |
41 const WebKit::WebURLResponse&) {} | 41 const WebKit::WebURLResponse&) {} |
42 virtual void didReceiveDataForMainResource(const char* data, int len) {} | 42 virtual void didReceiveDataForMainResource(const char* data, int len) {} |
43 virtual void didFinishLoadingMainResource(bool success) {} | 43 virtual void didFinishLoadingMainResource(bool success) {} |
44 | 44 |
45 // Cache selection is also different for workers. We know at construction | 45 // Cache selection is also different for workers. We know at construction |
46 // time what cache to select and do so then. | 46 // time what cache to select and do so then. |
47 virtual void selectCacheWithoutManifest() {} | 47 virtual void selectCacheWithoutManifest() {} |
48 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL) { | 48 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); |
49 return true; | |
50 } | |
51 }; | 49 }; |
52 | 50 |
53 #endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 51 #endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
OLD | NEW |