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