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