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

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

Issue 1230213004: [Background Sync] Sent sync registration details to worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bgsync-event-mek
Patch Set: Validate safety of static_casts Created 5 years, 5 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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 int64 sw_registration_id, 113 int64 sw_registration_id,
114 const GURL& origin, 114 const GURL& origin,
115 const std::string& backend_key, 115 const std::string& backend_key,
116 const std::string& data, 116 const std::string& data,
117 const ServiceWorkerStorage::StatusCallback& callback); 117 const ServiceWorkerStorage::StatusCallback& callback);
118 virtual void GetDataFromBackend( 118 virtual void GetDataFromBackend(
119 const std::string& backend_key, 119 const std::string& backend_key,
120 const ServiceWorkerStorage::GetUserDataForAllRegistrationsCallback& 120 const ServiceWorkerStorage::GetUserDataForAllRegistrationsCallback&
121 callback); 121 callback);
122 virtual void FireOneShotSync( 122 virtual void FireOneShotSync(
123 BackgroundSyncRegistration* registration,
jkarlin 2015/07/17 18:07:22 const BackgroundSyncRegistration& registration
iclelland 2015/07/17 18:34:25 Done.
123 const scoped_refptr<ServiceWorkerVersion>& active_version, 124 const scoped_refptr<ServiceWorkerVersion>& active_version,
124 const ServiceWorkerVersion::StatusCallback& callback); 125 const ServiceWorkerVersion::StatusCallback& callback);
125 126
126 private: 127 private:
127 class RegistrationKey { 128 class RegistrationKey {
128 public: 129 public:
129 explicit RegistrationKey(const BackgroundSyncRegistration& registration); 130 explicit RegistrationKey(const BackgroundSyncRegistration& registration);
130 explicit RegistrationKey(const BackgroundSyncRegistrationOptions& options); 131 explicit RegistrationKey(const BackgroundSyncRegistrationOptions& options);
131 RegistrationKey(const std::string& tag, SyncPeriodicity periodicity); 132 RegistrationKey(const std::string& tag, SyncPeriodicity periodicity);
132 RegistrationKey(const RegistrationKey& other) = default; 133 RegistrationKey(const RegistrationKey& other) = default;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 scoped_ptr<BackgroundSyncPowerObserver> power_observer_; 293 scoped_ptr<BackgroundSyncPowerObserver> power_observer_;
293 294
294 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; 295 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_;
295 296
296 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); 297 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager);
297 }; 298 };
298 299
299 } // namespace content 300 } // namespace content
300 301
301 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 302 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698