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

Side by Side Diff: content/browser/service_worker/service_worker_version.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: Use constref rather than pointer for FireOneShotSync 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 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_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // statuses will result in an error SERVICE_WORKER_ERROR_FAILED. 200 // statuses will result in an error SERVICE_WORKER_ERROR_FAILED.
201 void DispatchFetchEvent(const ServiceWorkerFetchRequest& request, 201 void DispatchFetchEvent(const ServiceWorkerFetchRequest& request,
202 const base::Closure& prepare_callback, 202 const base::Closure& prepare_callback,
203 const FetchCallback& fetch_callback); 203 const FetchCallback& fetch_callback);
204 204
205 // Sends sync event to the associated embedded worker and asynchronously calls 205 // Sends sync event to the associated embedded worker and asynchronously calls
206 // |callback| when it errors out or it gets a response from the worker to 206 // |callback| when it errors out or it gets a response from the worker to
207 // notify completion. 207 // notify completion.
208 // 208 //
209 // This must be called when the status() is ACTIVATED. 209 // This must be called when the status() is ACTIVATED.
210 void DispatchSyncEvent(const StatusCallback& callback); 210 void DispatchSyncEvent(SyncRegistrationPtr registration,
211 const StatusCallback& callback);
211 212
212 // Sends notificationclick event to the associated embedded worker and 213 // Sends notificationclick event to the associated embedded worker and
213 // asynchronously calls |callback| when it errors out or it gets a response 214 // asynchronously calls |callback| when it errors out or it gets a response
214 // from the worker to notify completion. 215 // from the worker to notify completion.
215 // 216 //
216 // This must be called when the status() is ACTIVATED. 217 // This must be called when the status() is ACTIVATED.
217 void DispatchNotificationClickEvent( 218 void DispatchNotificationClickEvent(
218 const StatusCallback& callback, 219 const StatusCallback& callback,
219 int64_t persistent_notification_id, 220 int64_t persistent_notification_id,
220 const PlatformNotificationData& notification_data); 221 const PlatformNotificationData& notification_data);
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 BackgroundSyncServiceClientPtr background_sync_dispatcher_; 606 BackgroundSyncServiceClientPtr background_sync_dispatcher_;
606 607
607 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 608 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
608 609
609 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 610 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
610 }; 611 };
611 612
612 } // namespace content 613 } // namespace content
613 614
614 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 615 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698