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

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

Issue 966393002: ServiceWorkerVersion: remove unused parameter in DispatchInstallEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix 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
« no previous file with comments | « content/renderer/service_worker/service_worker_script_context.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/service_worker_script_context.h" 5 #include "content/renderer/service_worker/service_worker_script_context.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "content/child/notifications/notification_data_conversions.h" 10 #include "content/child/notifications/notification_data_conversions.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 return embedded_context_->embedded_worker_id(); 307 return embedded_context_->embedded_worker_id();
308 } 308 }
309 309
310 void ServiceWorkerScriptContext::OnActivateEvent(int request_id) { 310 void ServiceWorkerScriptContext::OnActivateEvent(int request_id) {
311 TRACE_EVENT0("ServiceWorker", 311 TRACE_EVENT0("ServiceWorker",
312 "ServiceWorkerScriptContext::OnActivateEvent"); 312 "ServiceWorkerScriptContext::OnActivateEvent");
313 activate_start_timings_[request_id] = base::TimeTicks::Now(); 313 activate_start_timings_[request_id] = base::TimeTicks::Now();
314 proxy_->dispatchActivateEvent(request_id); 314 proxy_->dispatchActivateEvent(request_id);
315 } 315 }
316 316
317 void ServiceWorkerScriptContext::OnInstallEvent(int request_id, 317 void ServiceWorkerScriptContext::OnInstallEvent(int request_id) {
318 int active_version_id) {
319 TRACE_EVENT0("ServiceWorker", 318 TRACE_EVENT0("ServiceWorker",
320 "ServiceWorkerScriptContext::OnInstallEvent"); 319 "ServiceWorkerScriptContext::OnInstallEvent");
321 install_start_timings_[request_id] = base::TimeTicks::Now(); 320 install_start_timings_[request_id] = base::TimeTicks::Now();
322 proxy_->dispatchInstallEvent(request_id); 321 proxy_->dispatchInstallEvent(request_id);
323 } 322 }
324 323
325 void ServiceWorkerScriptContext::OnFetchEvent( 324 void ServiceWorkerScriptContext::OnFetchEvent(
326 int request_id, 325 int request_id,
327 const ServiceWorkerFetchRequest& request) { 326 const ServiceWorkerFetchRequest& request) {
328 blink::WebServiceWorkerRequest webRequest; 327 blink::WebServiceWorkerRequest webRequest;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 new blink::WebServiceWorkerError(error_type, message)); 572 new blink::WebServiceWorkerError(error_type, message));
574 callbacks->onError(error.release()); 573 callbacks->onError(error.release());
575 pending_claim_clients_callbacks_.Remove(request_id); 574 pending_claim_clients_callbacks_.Remove(request_id);
576 } 575 }
577 576
578 void ServiceWorkerScriptContext::OnPing() { 577 void ServiceWorkerScriptContext::OnPing() {
579 Send(new ServiceWorkerHostMsg_Pong(GetRoutingID())); 578 Send(new ServiceWorkerHostMsg_Pong(GetRoutingID()));
580 } 579 }
581 580
582 } // namespace content 581 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/service_worker/service_worker_script_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698