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

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

Issue 1071203002: Consistently handle persistent notification ids as int64_t (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-Integrate
Patch Set: rebase Created 5 years, 8 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // This must be called when the status() is ACTIVATED. 208 // This must be called when the status() is ACTIVATED.
209 void DispatchSyncEvent(const StatusCallback& callback); 209 void DispatchSyncEvent(const StatusCallback& callback);
210 210
211 // Sends notificationclick event to the associated embedded worker and 211 // Sends notificationclick event to the associated embedded worker and
212 // asynchronously calls |callback| when it errors out or it gets a response 212 // asynchronously calls |callback| when it errors out or it gets a response
213 // from the worker to notify completion. 213 // from the worker to notify completion.
214 // 214 //
215 // This must be called when the status() is ACTIVATED. 215 // This must be called when the status() is ACTIVATED.
216 void DispatchNotificationClickEvent( 216 void DispatchNotificationClickEvent(
217 const StatusCallback& callback, 217 const StatusCallback& callback,
218 const std::string& notification_id, 218 int64_t persistent_notification_id,
219 const PlatformNotificationData& notification_data); 219 const PlatformNotificationData& notification_data);
220 220
221 // Sends push event to the associated embedded worker and asynchronously calls 221 // Sends push event to the associated embedded worker and asynchronously calls
222 // |callback| when it errors out or it gets a response from the worker to 222 // |callback| when it errors out or it gets a response from the worker to
223 // notify completion. 223 // notify completion.
224 // 224 //
225 // This must be called when the status() is ACTIVATED. 225 // This must be called when the status() is ACTIVATED.
226 void DispatchPushEvent(const StatusCallback& callback, 226 void DispatchPushEvent(const StatusCallback& callback,
227 const std::string& data); 227 const std::string& data);
228 228
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; 540 scoped_ptr<net::HttpResponseInfo> main_script_http_info_;
541 541
542 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 542 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
543 543
544 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 544 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
545 }; 545 };
546 546
547 } // namespace content 547 } // namespace content
548 548
549 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 549 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698