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

Side by Side Diff: content/browser/background_sync/background_sync_manager.h

Issue 2183783002: Revert of Stop passing const-reference of SWRegistration in all GetRegistrationsCallbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // FireReadyEvents scans the list of available events and fires those that are 242 // FireReadyEvents scans the list of available events and fires those that are
243 // ready to fire. For those that can't yet be fired, wakeup alarms are set. 243 // ready to fire. For those that can't yet be fired, wakeup alarms are set.
244 void FireReadyEvents(); 244 void FireReadyEvents();
245 void FireReadyEventsImpl(const base::Closure& callback); 245 void FireReadyEventsImpl(const base::Closure& callback);
246 void FireReadyEventsDidFindRegistration( 246 void FireReadyEventsDidFindRegistration(
247 const std::string& tag, 247 const std::string& tag,
248 BackgroundSyncRegistration::RegistrationId registration_id, 248 BackgroundSyncRegistration::RegistrationId registration_id,
249 const base::Closure& event_fired_callback, 249 const base::Closure& event_fired_callback,
250 const base::Closure& event_completed_callback, 250 const base::Closure& event_completed_callback,
251 ServiceWorkerStatusCode service_worker_status, 251 ServiceWorkerStatusCode service_worker_status,
252 scoped_refptr<ServiceWorkerRegistration> service_worker_registration); 252 const scoped_refptr<ServiceWorkerRegistration>&
253 service_worker_registration);
253 void FireReadyEventsAllEventsFiring(const base::Closure& callback); 254 void FireReadyEventsAllEventsFiring(const base::Closure& callback);
254 255
255 // Called when a sync event has completed. 256 // Called when a sync event has completed.
256 void EventComplete( 257 void EventComplete(
257 scoped_refptr<ServiceWorkerRegistration> service_worker_registration, 258 scoped_refptr<ServiceWorkerRegistration> service_worker_registration,
258 int64_t service_worker_id, 259 int64_t service_worker_id,
259 const std::string& tag, 260 const std::string& tag,
260 const base::Closure& callback, 261 const base::Closure& callback,
261 ServiceWorkerStatusCode status_code); 262 ServiceWorkerStatusCode status_code);
262 void EventCompleteImpl(int64_t service_worker_id, 263 void EventCompleteImpl(int64_t service_worker_id,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 std::unique_ptr<base::Clock> clock_; 306 std::unique_ptr<base::Clock> clock_;
306 307
307 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; 308 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_;
308 309
309 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); 310 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager);
310 }; 311 };
311 312
312 } // namespace content 313 } // namespace content
313 314
314 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 315 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698