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

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

Issue 1267673003: Plumb Blink notification actions to button UI on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix size_t Created 5 years, 4 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(const blink::WebSecurityOrigin& origin, 57 virtual void closePersistent(const blink::WebSecurityOrigin& origin,
58 int64_t persistent_notification_id); 58 int64_t persistent_notification_id);
59 virtual void notifyDelegateDestroyed( 59 virtual void notifyDelegateDestroyed(
60 blink::WebNotificationDelegate* delegate); 60 blink::WebNotificationDelegate* delegate);
61 virtual blink::WebNotificationPermission checkPermission( 61 virtual blink::WebNotificationPermission checkPermission(
62 const blink::WebSecurityOrigin& origin); 62 const blink::WebSecurityOrigin& origin);
63 virtual size_t maxActions();
63 64
64 // Called by the NotificationDispatcher. 65 // Called by the NotificationDispatcher.
65 bool OnMessageReceived(const IPC::Message& message); 66 bool OnMessageReceived(const IPC::Message& message);
66 67
67 private: 68 private:
68 NotificationManager( 69 NotificationManager(
69 ThreadSafeSender* thread_safe_sender, 70 ThreadSafeSender* thread_safe_sender,
70 base::SingleThreadTaskRunner* main_thread_task_runner, 71 base::SingleThreadTaskRunner* main_thread_task_runner,
71 NotificationDispatcher* notification_dispatcher); 72 NotificationDispatcher* notification_dispatcher);
72 73
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 // Map to store the delegate associated with a notification request Id. 119 // Map to store the delegate associated with a notification request Id.
119 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_; 120 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(NotificationManager); 122 DISALLOW_COPY_AND_ASSIGN(NotificationManager);
122 }; 123 };
123 124
124 } // namespace content 125 } // namespace content
125 126
126 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ 127 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698