OLD | NEW |
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 const StatusCallback& callback); | 213 const StatusCallback& callback); |
214 | 214 |
215 // Sends notificationclick event to the associated embedded worker and | 215 // Sends notificationclick event to the associated embedded worker and |
216 // asynchronously calls |callback| when it errors out or it gets a response | 216 // asynchronously calls |callback| when it errors out or it gets a response |
217 // from the worker to notify completion. | 217 // from the worker to notify completion. |
218 // | 218 // |
219 // This must be called when the status() is ACTIVATED. | 219 // This must be called when the status() is ACTIVATED. |
220 void DispatchNotificationClickEvent( | 220 void DispatchNotificationClickEvent( |
221 const StatusCallback& callback, | 221 const StatusCallback& callback, |
222 int64_t persistent_notification_id, | 222 int64_t persistent_notification_id, |
223 const PlatformNotificationData& notification_data); | 223 const PlatformNotificationData& notification_data, |
| 224 int action_index); |
224 | 225 |
225 // Sends push event to the associated embedded worker and asynchronously calls | 226 // Sends push event to the associated embedded worker and asynchronously calls |
226 // |callback| when it errors out or it gets a response from the worker to | 227 // |callback| when it errors out or it gets a response from the worker to |
227 // notify completion. | 228 // notify completion. |
228 // | 229 // |
229 // This must be called when the status() is ACTIVATED. | 230 // This must be called when the status() is ACTIVATED. |
230 void DispatchPushEvent(const StatusCallback& callback, | 231 void DispatchPushEvent(const StatusCallback& callback, |
231 const std::string& data); | 232 const std::string& data); |
232 | 233 |
233 // Sends geofencing event to the associated embedded worker and asynchronously | 234 // Sends geofencing event to the associated embedded worker and asynchronously |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 scoped_ptr<Metrics> metrics_; | 624 scoped_ptr<Metrics> metrics_; |
624 | 625 |
625 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 626 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
626 | 627 |
627 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 628 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
628 }; | 629 }; |
629 | 630 |
630 } // namespace content | 631 } // namespace content |
631 | 632 |
632 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 633 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |