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

Side by Side Diff: content/child/service_worker/service_worker_message_filter.cc

Issue 717353004: ServiceWorker: Add support for .skipWaiting and controllerchange event(2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 6 years 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/child/service_worker/service_worker_message_filter.h" 5 #include "content/child/service_worker/service_worker_message_filter.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "content/child/service_worker/service_worker_dispatcher.h" 8 #include "content/child/service_worker/service_worker_dispatcher.h"
9 #include "content/child/thread_safe_sender.h" 9 #include "content/child/thread_safe_sender.h"
10 #include "content/child/worker_thread_task_runner.h" 10 #include "content/child/worker_thread_task_runner.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 attrs.waiting.handle_id); 104 attrs.waiting.handle_id);
105 SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), 105 SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(),
106 attrs.active.handle_id); 106 attrs.active.handle_id);
107 SendRegistrationObjectDestroyed(thread_safe_sender_.get(), 107 SendRegistrationObjectDestroyed(thread_safe_sender_.get(),
108 registration_handle_id); 108 registration_handle_id);
109 } 109 }
110 110
111 void ServiceWorkerMessageFilter::OnStaleSetControllerServiceWorker( 111 void ServiceWorkerMessageFilter::OnStaleSetControllerServiceWorker(
112 int thread_id, 112 int thread_id,
113 int provider_id, 113 int provider_id,
114 const ServiceWorkerObjectInfo& info) { 114 const ServiceWorkerObjectInfo& info,
115 bool should_notify_controllerchange) {
115 SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), info.handle_id); 116 SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), info.handle_id);
116 } 117 }
117 118
118 } // namespace content 119 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698