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

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

Issue 2658603003: ServiceWorker: Enable UseCounter for ServiceWorkerGlobalScope (Closed)
Patch Set: int32_t -> uint32_t Created 3 years, 10 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/child/service_worker/service_worker_message_filter.h" 5 #include "content/child/service_worker/service_worker_message_filter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "content/child/service_worker/service_worker_dispatcher.h" 9 #include "content/child/service_worker/service_worker_dispatcher.h"
10 #include "content/child/thread_safe_sender.h" 10 #include "content/child/thread_safe_sender.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 SendServiceWorkerObjectDestroyed(thread_safe_sender(), 136 SendServiceWorkerObjectDestroyed(thread_safe_sender(),
137 attrs.active.handle_id); 137 attrs.active.handle_id);
138 // Don't have to decrement registration refcount because the sender of the 138 // Don't have to decrement registration refcount because the sender of the
139 // SetVersionAttributes message doesn't increment it. 139 // SetVersionAttributes message doesn't increment it.
140 } 140 }
141 141
142 void ServiceWorkerMessageFilter::OnStaleSetControllerServiceWorker( 142 void ServiceWorkerMessageFilter::OnStaleSetControllerServiceWorker(
143 int thread_id, 143 int thread_id,
144 int provider_id, 144 int provider_id,
145 const ServiceWorkerObjectInfo& info, 145 const ServiceWorkerObjectInfo& info,
146 bool should_notify_controllerchange) { 146 bool should_notify_controllerchange,
147 const std::set<uint32_t>& used_features) {
147 SendServiceWorkerObjectDestroyed(thread_safe_sender(), info.handle_id); 148 SendServiceWorkerObjectDestroyed(thread_safe_sender(), info.handle_id);
148 } 149 }
149 150
150 void ServiceWorkerMessageFilter::OnStaleMessageToDocument( 151 void ServiceWorkerMessageFilter::OnStaleMessageToDocument(
151 const ServiceWorkerMsg_MessageToDocument_Params& params) { 152 const ServiceWorkerMsg_MessageToDocument_Params& params) {
152 SendServiceWorkerObjectDestroyed(thread_safe_sender(), 153 SendServiceWorkerObjectDestroyed(thread_safe_sender(),
153 params.service_worker_info.handle_id); 154 params.service_worker_info.handle_id);
154 } 155 }
155 156
156 } // namespace content 157 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698