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

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

Issue 982313002: Closing a persistent notification should be aware of the origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 10
(...skipping 29 matching lines...) Expand all
40 virtual void show(const blink::WebSerializedOrigin& origin, 40 virtual void show(const blink::WebSerializedOrigin& origin,
41 const blink::WebNotificationData& notification_data, 41 const blink::WebNotificationData& notification_data,
42 blink::WebNotificationDelegate* delegate); 42 blink::WebNotificationDelegate* delegate);
43 virtual void showPersistent( 43 virtual void showPersistent(
44 const blink::WebSerializedOrigin& origin, 44 const blink::WebSerializedOrigin& origin,
45 const blink::WebNotificationData& notification_data, 45 const blink::WebNotificationData& notification_data,
46 blink::WebServiceWorkerRegistration* service_worker_registration, 46 blink::WebServiceWorkerRegistration* service_worker_registration,
47 blink::WebNotificationShowCallbacks* callbacks); 47 blink::WebNotificationShowCallbacks* callbacks);
48 virtual void close(blink::WebNotificationDelegate* delegate); 48 virtual void close(blink::WebNotificationDelegate* delegate);
49 virtual void closePersistent( 49 virtual void closePersistent(
50 const blink::WebSerializedOrigin& origin,
51 const blink::WebString& persistent_notification_id);
52 // TODO(peter): Remove this method when Blink has been updated.
53 virtual void closePersistent(
50 const blink::WebString& persistent_notification_id); 54 const blink::WebString& persistent_notification_id);
51 virtual void notifyDelegateDestroyed( 55 virtual void notifyDelegateDestroyed(
52 blink::WebNotificationDelegate* delegate); 56 blink::WebNotificationDelegate* delegate);
53 virtual blink::WebNotificationPermission checkPermission( 57 virtual blink::WebNotificationPermission checkPermission(
54 const blink::WebSerializedOrigin& origin); 58 const blink::WebSerializedOrigin& origin);
55 59
56 // Called by the NotificationDispatcher. 60 // Called by the NotificationDispatcher.
57 bool OnMessageReceived(const IPC::Message& message); 61 bool OnMessageReceived(const IPC::Message& message);
58 62
59 private: 63 private:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 101
98 // Map to store the delegate associated with a notification request Id. 102 // Map to store the delegate associated with a notification request Id.
99 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_; 103 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_;
100 104
101 DISALLOW_COPY_AND_ASSIGN(NotificationManager); 105 DISALLOW_COPY_AND_ASSIGN(NotificationManager);
102 }; 106 };
103 107
104 } // namespace content 108 } // namespace content
105 109
106 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ 110 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/notifications/notification_message_filter.cc ('k') | content/child/notifications/notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698