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

Side by Side Diff: content/child/notifications/notification_manager.h

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void show( 44 void show(
45 const blink::WebSecurityOrigin& origin, 45 const blink::WebSecurityOrigin& origin,
46 const blink::WebNotificationData& notification_data, 46 const blink::WebNotificationData& notification_data,
47 std::unique_ptr<blink::WebNotificationResources> notification_resources, 47 std::unique_ptr<blink::WebNotificationResources> notification_resources,
48 blink::WebNotificationDelegate* delegate) override; 48 blink::WebNotificationDelegate* delegate) override;
49 void showPersistent( 49 void showPersistent(
50 const blink::WebSecurityOrigin& origin, 50 const blink::WebSecurityOrigin& origin,
51 const blink::WebNotificationData& notification_data, 51 const blink::WebNotificationData& notification_data,
52 std::unique_ptr<blink::WebNotificationResources> notification_resources, 52 std::unique_ptr<blink::WebNotificationResources> notification_resources,
53 blink::WebServiceWorkerRegistration* service_worker_registration, 53 blink::WebServiceWorkerRegistration* service_worker_registration,
54 blink::WebNotificationShowCallbacks* callbacks) override; 54 std::unique_ptr<blink::WebNotificationShowCallbacks> callbacks) override;
55 void getNotifications( 55 void getNotifications(
56 const blink::WebString& filter_tag, 56 const blink::WebString& filter_tag,
57 blink::WebServiceWorkerRegistration* service_worker_registration, 57 blink::WebServiceWorkerRegistration* service_worker_registration,
58 blink::WebNotificationGetCallbacks* callbacks) override; 58 std::unique_ptr<blink::WebNotificationGetCallbacks> callbacks) override;
59 void close(blink::WebNotificationDelegate* delegate) override; 59 void close(blink::WebNotificationDelegate* delegate) override;
60 void closePersistent(const blink::WebSecurityOrigin& origin, 60 void closePersistent(const blink::WebSecurityOrigin& origin,
61 const blink::WebString& tag, 61 const blink::WebString& tag,
62 const blink::WebString& notification_id) override; 62 const blink::WebString& notification_id) override;
63 void notifyDelegateDestroyed( 63 void notifyDelegateDestroyed(
64 blink::WebNotificationDelegate* delegate) override; 64 blink::WebNotificationDelegate* delegate) override;
65 65
66 // Called by the NotificationDispatcher. 66 // Called by the NotificationDispatcher.
67 bool OnMessageReceived(const IPC::Message& message); 67 bool OnMessageReceived(const IPC::Message& message);
68 68
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Map to store the delegate associated with a notification request Id. 106 // Map to store the delegate associated with a notification request Id.
107 std::unordered_map<int, ActiveNotificationData> active_page_notifications_; 107 std::unordered_map<int, ActiveNotificationData> active_page_notifications_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(NotificationManager); 109 DISALLOW_COPY_AND_ASSIGN(NotificationManager);
110 }; 110 };
111 111
112 } // namespace content 112 } // namespace content
113 113
114 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ 114 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.cc ('k') | content/child/notifications/notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698