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

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

Issue 1898153002: Migrate notifications to use the PermissionStatus enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 blink::WebNotificationShowCallbacks* callbacks) override; 54 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 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 int64_t persistent_notification_id) override; 61 int64_t persistent_notification_id) override;
62 void notifyDelegateDestroyed( 62 void notifyDelegateDestroyed(
63 blink::WebNotificationDelegate* delegate) override; 63 blink::WebNotificationDelegate* delegate) override;
64 blink::WebNotificationPermission checkPermission( 64 blink::mojom::PermissionStatus checkPermission(
65 const blink::WebSecurityOrigin& origin) override; 65 const blink::WebSecurityOrigin& origin) override;
66 size_t maxActions() override; 66 size_t maxActions() override;
67 67
68 // Called by the NotificationDispatcher. 68 // Called by the NotificationDispatcher.
69 bool OnMessageReceived(const IPC::Message& message); 69 bool OnMessageReceived(const IPC::Message& message);
70 70
71 private: 71 private:
72 NotificationManager(ThreadSafeSender* thread_safe_sender, 72 NotificationManager(ThreadSafeSender* thread_safe_sender,
73 NotificationDispatcher* notification_dispatcher); 73 NotificationDispatcher* notification_dispatcher);
74 74
(...skipping 19 matching lines...) Expand all
94 94
95 // Map to store the delegate associated with a notification request Id. 95 // Map to store the delegate associated with a notification request Id.
96 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_; 96 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(NotificationManager); 98 DISALLOW_COPY_AND_ASSIGN(NotificationManager);
99 }; 99 };
100 100
101 } // namespace content 101 } // namespace content
102 102
103 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ 103 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698