[content shell] hook up testRunner.dumpEditingCallbacks
[chromium-blink-merge.git] / content / worker / worker_webapplicationcachehost_impl.cc
blobaf7820b18ff23708ae21f1a320ff5c262465fa6c
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
3 // found in the LICENSE file.
5 #include "content/worker/worker_webapplicationcachehost_impl.h"
7 #include "content/common/appcache/appcache_dispatcher.h"
8 #include "content/worker/worker_thread.h"
10 namespace content {
12 WorkerWebApplicationCacheHostImpl::WorkerWebApplicationCacheHostImpl(
13 const WorkerAppCacheInitInfo& init_info,
14 WebKit::WebApplicationCacheHostClient* client)
15 : WebApplicationCacheHostImpl(client,
16 WorkerThread::current()->appcache_dispatcher()->backend_proxy()) {
17 backend()->SelectCacheForSharedWorker(host_id(),
18 init_info.main_resource_appcache_id);
21 void WorkerWebApplicationCacheHostImpl::willStartMainResourceRequest(
22 WebKit::WebURLRequest&, const WebKit::WebFrame*) {
25 void WorkerWebApplicationCacheHostImpl::didReceiveResponseForMainResource(
26 const WebKit::WebURLResponse&) {
29 void WorkerWebApplicationCacheHostImpl::didReceiveDataForMainResource(
30 const char*, int) {
33 void WorkerWebApplicationCacheHostImpl::didFinishLoadingMainResource(
34 bool) {
37 void WorkerWebApplicationCacheHostImpl::selectCacheWithoutManifest() {
40 bool WorkerWebApplicationCacheHostImpl::selectCacheWithManifest(
41 const WebKit::WebURL&) {
42 return true;
45 } // namespace content