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

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

Issue 2181553003: Stop passing const-reference of SWRegistration in all GetRegistrationsCallbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ServiceWorkerContextCore::DidFindRegistrationForCheckHasServiceWorker() Created 4 years, 4 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const std::string& status_message, 206 const std::string& status_message,
207 int64_t registration_id); 207 int64_t registration_id);
208 void UnregistrationComplete(int thread_id, 208 void UnregistrationComplete(int thread_id,
209 int request_id, 209 int request_id,
210 ServiceWorkerStatusCode status); 210 ServiceWorkerStatusCode status);
211 void GetRegistrationComplete( 211 void GetRegistrationComplete(
212 int thread_id, 212 int thread_id,
213 int provider_id, 213 int provider_id,
214 int request_id, 214 int request_id,
215 ServiceWorkerStatusCode status, 215 ServiceWorkerStatusCode status,
216 const scoped_refptr<ServiceWorkerRegistration>& registration); 216 scoped_refptr<ServiceWorkerRegistration> registration);
217 void GetRegistrationsComplete( 217 void GetRegistrationsComplete(
218 int thread_id, 218 int thread_id,
219 int provider_id, 219 int provider_id,
220 int request_id, 220 int request_id,
221 ServiceWorkerStatusCode status, 221 ServiceWorkerStatusCode status,
222 const std::vector<scoped_refptr<ServiceWorkerRegistration>>& 222 const std::vector<scoped_refptr<ServiceWorkerRegistration>>&
223 registrations); 223 registrations);
224 void GetRegistrationForReadyComplete( 224 void GetRegistrationForReadyComplete(
225 int thread_id, 225 int thread_id,
226 int request_id, 226 int request_id,
(...skipping 15 matching lines...) Expand all
242 242
243 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 243 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
244 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; 244 std::vector<std::unique_ptr<IPC::Message>> pending_messages_;
245 245
246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
247 }; 247 };
248 248
249 } // namespace content 249 } // namespace content
250 250
251 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 251 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698