Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: content/worker/worker_webapplicationcachehost_impl.cc

Issue 8399007: Removing dedicated worker-related IPC codei (first round). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: CR feedback Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/worker/worker_webapplicationcachehost_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 backend()->SelectCacheForSharedWorker(host_id(),
16 backend()->SelectCacheForSharedWorker(host_id(),
17 init_info.main_resource_appcache_id); 16 init_info.main_resource_appcache_id);
18 else
19 backend()->SelectCacheForWorker(host_id(),
20 init_info.parent_process_id,
21 init_info.parent_appcache_host_id);
22 } 17 }
23 18
24 void WorkerWebApplicationCacheHostImpl::willStartMainResourceRequest( 19 void WorkerWebApplicationCacheHostImpl::willStartMainResourceRequest(
25 WebKit::WebURLRequest&, const WebKit::WebFrame*) { 20 WebKit::WebURLRequest&, const WebKit::WebFrame*) {
26 } 21 }
27 22
28 void WorkerWebApplicationCacheHostImpl::didReceiveResponseForMainResource( 23 void WorkerWebApplicationCacheHostImpl::didReceiveResponseForMainResource(
29 const WebKit::WebURLResponse&) { 24 const WebKit::WebURLResponse&) {
30 } 25 }
31 26
32 void WorkerWebApplicationCacheHostImpl::didReceiveDataForMainResource( 27 void WorkerWebApplicationCacheHostImpl::didReceiveDataForMainResource(
33 const char*, int) { 28 const char*, int) {
34 } 29 }
35 30
36 void WorkerWebApplicationCacheHostImpl::didFinishLoadingMainResource( 31 void WorkerWebApplicationCacheHostImpl::didFinishLoadingMainResource(
37 bool) { 32 bool) {
38 } 33 }
39 34
40 void WorkerWebApplicationCacheHostImpl::selectCacheWithoutManifest() { 35 void WorkerWebApplicationCacheHostImpl::selectCacheWithoutManifest() {
41 } 36 }
42 37
43 bool WorkerWebApplicationCacheHostImpl::selectCacheWithManifest( 38 bool WorkerWebApplicationCacheHostImpl::selectCacheWithManifest(
44 const WebKit::WebURL&) { 39 const WebKit::WebURL&) {
45 return true; 40 return true;
46 } 41 }
OLDNEW
« no previous file with comments | « content/worker/worker_webapplicationcachehost_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698