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

Side by Side Diff: content/renderer/service_worker/embedded_worker_context_client.cc

Issue 1022703003: Cache Storage: Remove unused Service/Embedder Worker plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cache-2
Patch Set: Created 5 years, 9 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/service_worker/embedded_worker_context_client.h" 5 #include "content/renderer/service_worker/embedded_worker_context_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 void EmbeddedWorkerContextClient::Send(IPC::Message* message) { 135 void EmbeddedWorkerContextClient::Send(IPC::Message* message) {
136 sender_->Send(message); 136 sender_->Send(message);
137 } 137 }
138 138
139 blink::WebURL EmbeddedWorkerContextClient::scope() const { 139 blink::WebURL EmbeddedWorkerContextClient::scope() const {
140 return service_worker_scope_; 140 return service_worker_scope_;
141 } 141 }
142 142
143 blink::WebServiceWorkerCacheStorage*
144 EmbeddedWorkerContextClient::cacheStorage() {
145 return script_context_->cache_storage();
146 }
147
148 void EmbeddedWorkerContextClient::didPauseAfterDownload() { 143 void EmbeddedWorkerContextClient::didPauseAfterDownload() {
149 Send(new EmbeddedWorkerHostMsg_DidPauseAfterDownload(embedded_worker_id_)); 144 Send(new EmbeddedWorkerHostMsg_DidPauseAfterDownload(embedded_worker_id_));
150 } 145 }
151 146
152 void EmbeddedWorkerContextClient::getClients( 147 void EmbeddedWorkerContextClient::getClients(
153 const blink::WebServiceWorkerClientQueryOptions& options, 148 const blink::WebServiceWorkerClientQueryOptions& options,
154 blink::WebServiceWorkerClientsCallbacks* callbacks) { 149 blink::WebServiceWorkerClientsCallbacks* callbacks) {
155 DCHECK(script_context_); 150 DCHECK(script_context_);
156 script_context_->GetClients(options, callbacks); 151 script_context_->GetClients(options, callbacks);
157 } 152 }
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 registration->SetWaiting( 464 registration->SetWaiting(
470 dispatcher->GetServiceWorker(attrs.waiting, false)); 465 dispatcher->GetServiceWorker(attrs.waiting, false));
471 registration->SetActive( 466 registration->SetActive(
472 dispatcher->GetServiceWorker(attrs.active, false)); 467 dispatcher->GetServiceWorker(attrs.active, false));
473 468
474 script_context_->SetRegistrationInServiceWorkerGlobalScope( 469 script_context_->SetRegistrationInServiceWorkerGlobalScope(
475 registration.Pass()); 470 registration.Pass());
476 } 471 }
477 472
478 } // namespace content 473 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698