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

Side by Side Diff: content/browser/service_worker/service_worker_dispatcher_host.cc

Issue 252893006: Remove the unused source_process_id and provider_host arguments to SW unregistration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 6 years, 7 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 | Annotate | Revision Log
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/browser/service_worker/service_worker_dispatcher_host.h" 5 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/message_port_message_filter.h" 9 #include "content/browser/message_port_message_filter.h"
10 #include "content/browser/message_port_service.h" 10 #include "content/browser/message_port_service.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 ServiceWorkerProviderHost* provider_host = context_->GetProviderHost( 210 ServiceWorkerProviderHost* provider_host = context_->GetProviderHost(
211 render_process_id_, provider_id); 211 render_process_id_, provider_id);
212 if (!provider_host) { 212 if (!provider_host) {
213 BadMessageReceived(); 213 BadMessageReceived();
214 return; 214 return;
215 } 215 }
216 216
217 context_->UnregisterServiceWorker( 217 context_->UnregisterServiceWorker(
218 pattern, 218 pattern,
219 render_process_id_,
220 provider_host,
221 base::Bind(&ServiceWorkerDispatcherHost::UnregistrationComplete, 219 base::Bind(&ServiceWorkerDispatcherHost::UnregistrationComplete,
222 this, 220 this,
223 thread_id, 221 thread_id,
224 request_id)); 222 request_id));
225 } 223 }
226 224
227 void ServiceWorkerDispatcherHost::OnPostMessage( 225 void ServiceWorkerDispatcherHost::OnPostMessage(
228 int handle_id, 226 int handle_id,
229 const base::string16& message, 227 const base::string16& message,
230 const std::vector<int>& sent_message_port_ids) { 228 const std::vector<int>& sent_message_port_ids) {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 ServiceWorkerStatusCode status) { 397 ServiceWorkerStatusCode status) {
400 base::string16 error_message; 398 base::string16 error_message;
401 blink::WebServiceWorkerError::ErrorType error_type; 399 blink::WebServiceWorkerError::ErrorType error_type;
402 GetServiceWorkerRegistrationStatusResponse( 400 GetServiceWorkerRegistrationStatusResponse(
403 status, &error_type, &error_message); 401 status, &error_type, &error_message);
404 Send(new ServiceWorkerMsg_ServiceWorkerRegistrationError( 402 Send(new ServiceWorkerMsg_ServiceWorkerRegistrationError(
405 thread_id, request_id, error_type, error_message)); 403 thread_id, request_id, error_type, error_message));
406 } 404 }
407 405
408 } // namespace content 406 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698