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 #include "content/worker/worker_webapplicationcachehost_impl.h" | 5 #include "content/worker/worker_webapplicationcachehost_impl.h" |
6 | 6 |
7 #include "content/common/appcache/appcache_dispatcher.h" | 7 #include "content/common/appcache/appcache_dispatcher.h" |
8 #include "content/worker/worker_thread.h" | 8 #include "content/worker/worker_thread.h" |
9 | 9 |
10 WorkerWebApplicationCacheHostImpl::WorkerWebApplicationCacheHostImpl( | 10 WorkerWebApplicationCacheHostImpl::WorkerWebApplicationCacheHostImpl( |
11 const WorkerAppCacheInitInfo& init_info, | 11 const WorkerAppCacheInitInfo& init_info, |
12 WebKit::WebApplicationCacheHostClient* client) | 12 WebKit::WebApplicationCacheHostClient* client) |
13 : WebApplicationCacheHostImpl(client, | 13 : WebApplicationCacheHostImpl(client, |
14 WorkerThread::current()->appcache_dispatcher()->backend_proxy()) { | 14 WorkerThread::current()->appcache_dispatcher()->backend_proxy()) { |
15 if (init_info.is_shared_worker) | 15 if (init_info.is_shared_worker) |
16 backend()->SelectCacheForSharedWorker(host_id(), | 16 backend()->SelectCacheForSharedWorker(host_id(), |
17 init_info.main_resource_appcache_id); | 17 init_info.main_resource_appcache_id); |
18 else | 18 else |
19 backend()->SelectCacheForWorker(host_id(), | 19 backend()->SelectCacheForWorker(host_id(), |
20 init_info.parent_process_id, | 20 init_info.parent_process_id, |
21 init_info.parent_appcache_host_id); | 21 init_info.parent_appcache_host_id); |
22 } | 22 } |
23 | 23 |
| 24 void WorkerWebApplicationCacheHostImpl::willStartMainResourceRequest( |
| 25 WebKit::WebURLRequest&, const WebKit::WebFrame*) { |
| 26 } |
| 27 |
| 28 void WorkerWebApplicationCacheHostImpl::didReceiveResponseForMainResource( |
| 29 const WebKit::WebURLResponse&) { |
| 30 } |
| 31 |
| 32 void WorkerWebApplicationCacheHostImpl::didReceiveDataForMainResource( |
| 33 const char*, int) { |
| 34 } |
| 35 |
| 36 void WorkerWebApplicationCacheHostImpl::didFinishLoadingMainResource( |
| 37 bool) { |
| 38 } |
| 39 |
| 40 void WorkerWebApplicationCacheHostImpl::selectCacheWithoutManifest() { |
| 41 } |
| 42 |
24 bool WorkerWebApplicationCacheHostImpl::selectCacheWithManifest( | 43 bool WorkerWebApplicationCacheHostImpl::selectCacheWithManifest( |
25 const WebKit::WebURL& manifestURL) { | 44 const WebKit::WebURL&) { |
26 return true; | 45 return true; |
27 } | 46 } |
OLD | NEW |