| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include "webkit/appcache/web_application_cache_host_impl.h" | 8 #include "webkit/appcache/web_application_cache_host_impl.h" |
| 9 | 9 |
| 10 namespace content { |
| 11 |
| 10 // Information used to construct and initialize an appcache host | 12 // Information used to construct and initialize an appcache host |
| 11 // for a worker. | 13 // for a worker. |
| 12 struct WorkerAppCacheInitInfo { | 14 struct WorkerAppCacheInitInfo { |
| 13 int parent_process_id; | 15 int parent_process_id; |
| 14 int64 main_resource_appcache_id; // Only valid for shared workers. | 16 int64 main_resource_appcache_id; // Only valid for shared workers. |
| 15 | 17 |
| 16 WorkerAppCacheInitInfo() | 18 WorkerAppCacheInitInfo() |
| 17 : parent_process_id(0), | 19 : parent_process_id(0), |
| 18 main_resource_appcache_id(0) { | 20 main_resource_appcache_id(0) { |
| 19 } | 21 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 virtual void didReceiveDataForMainResource(const char* data, int len); | 43 virtual void didReceiveDataForMainResource(const char* data, int len); |
| 42 virtual void didFinishLoadingMainResource(bool success); | 44 virtual void didFinishLoadingMainResource(bool success); |
| 43 | 45 |
| 44 // Cache selection is also different for workers. We know at construction | 46 // Cache selection is also different for workers. We know at construction |
| 45 // time what cache to select and do so then. | 47 // time what cache to select and do so then. |
| 46 // These overrides are stubbed out. | 48 // These overrides are stubbed out. |
| 47 virtual void selectCacheWithoutManifest(); | 49 virtual void selectCacheWithoutManifest(); |
| 48 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); | 50 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); |
| 49 }; | 51 }; |
| 50 | 52 |
| 53 } // namespace content |
| 54 |
| 51 #endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 55 #endif // CHROME_WORKER_WORKER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
| OLD | NEW |