| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 class WorkerWebApplicationCacheHostImpl | 30 class WorkerWebApplicationCacheHostImpl |
| 31 : public appcache::WebApplicationCacheHostImpl { | 31 : public appcache::WebApplicationCacheHostImpl { |
| 32 public: | 32 public: |
| 33 WorkerWebApplicationCacheHostImpl( | 33 WorkerWebApplicationCacheHostImpl( |
| 34 const WorkerAppCacheInitInfo& init_info, | 34 const WorkerAppCacheInitInfo& init_info, |
| 35 WebKit::WebApplicationCacheHostClient* client); | 35 WebKit::WebApplicationCacheHostClient* client); |
| 36 | 36 |
| 37 // Main resource loading is different for workers. The resource is | 37 // Main resource loading is different for workers. The resource is |
| 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 // These overrides are stubbed out. |
| 40 virtual void willStartMainResourceRequest( |
| 41 WebKit::WebURLRequest&, const WebKit::WebFrame*); |
| 40 virtual void didReceiveResponseForMainResource( | 42 virtual void didReceiveResponseForMainResource( |
| 41 const WebKit::WebURLResponse&) {} | 43 const WebKit::WebURLResponse&); |
| 42 virtual void didReceiveDataForMainResource(const char* data, int len) {} | 44 virtual void didReceiveDataForMainResource(const char* data, int len); |
| 43 virtual void didFinishLoadingMainResource(bool success) {} | 45 virtual void didFinishLoadingMainResource(bool success); |
| 44 | 46 |
| 45 // Cache selection is also different for workers. We know at construction | 47 // Cache selection is also different for workers. We know at construction |
| 46 // time what cache to select and do so then. | 48 // time what cache to select and do so then. |
| 47 virtual void selectCacheWithoutManifest() {} | 49 // These overrides are stubbed out. |
| 50 virtual void selectCacheWithoutManifest(); |
| 48 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); | 51 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 #endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 54 #endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
| OLD | NEW |