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

Side by Side Diff: content/child/notifications/notification_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ 5 #ifndef CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_
6 #define CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ 6 #define CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const blink::WebNotificationData& notification_data, 49 const blink::WebNotificationData& notification_data,
50 blink::WebServiceWorkerRegistration* service_worker_registration, 50 blink::WebServiceWorkerRegistration* service_worker_registration,
51 blink::WebNotificationShowCallbacks* callbacks); 51 blink::WebNotificationShowCallbacks* callbacks);
52 virtual void getNotifications( 52 virtual void getNotifications(
53 const blink::WebString& filter_tag, 53 const blink::WebString& filter_tag,
54 blink::WebServiceWorkerRegistration* service_worker_registration, 54 blink::WebServiceWorkerRegistration* service_worker_registration,
55 blink::WebNotificationGetCallbacks* callbacks); 55 blink::WebNotificationGetCallbacks* callbacks);
56 virtual void close(blink::WebNotificationDelegate* delegate); 56 virtual void close(blink::WebNotificationDelegate* delegate);
57 virtual void closePersistent( 57 virtual void closePersistent(
58 const blink::WebSerializedOrigin& origin, 58 const blink::WebSerializedOrigin& origin,
59 const blink::WebString& persistent_notification_id); 59 int64_t persistent_notification_id);
60 virtual void notifyDelegateDestroyed( 60 virtual void notifyDelegateDestroyed(
61 blink::WebNotificationDelegate* delegate); 61 blink::WebNotificationDelegate* delegate);
62 virtual blink::WebNotificationPermission checkPermission( 62 virtual blink::WebNotificationPermission checkPermission(
63 const blink::WebSerializedOrigin& origin); 63 const blink::WebSerializedOrigin& origin);
64 64
65 // Called by the NotificationDispatcher. 65 // Called by the NotificationDispatcher.
66 bool OnMessageReceived(const IPC::Message& message); 66 bool OnMessageReceived(const IPC::Message& message);
67 67
68 private: 68 private:
69 NotificationManager( 69 NotificationManager(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Map to store the delegate associated with a notification request Id. 119 // Map to store the delegate associated with a notification request Id.
120 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_; 120 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(NotificationManager); 122 DISALLOW_COPY_AND_ASSIGN(NotificationManager);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace content
126 126
127 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ 127 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/child/notifications/notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698