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

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

Issue 1942353002: (reland) Move permission.mojom from WebKit/public/platform/ to components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/notifications/notification_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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::mojom::PermissionStatus checkPermission( 64 permissions::mojom::PermissionStatus checkPermission(
65 const blink::WebSecurityOrigin& origin) override; 65 const blink::WebSecurityOrigin& origin) override;
66 66
67 // Called by the NotificationDispatcher. 67 // Called by the NotificationDispatcher.
68 bool OnMessageReceived(const IPC::Message& message); 68 bool OnMessageReceived(const IPC::Message& message);
69 69
70 private: 70 private:
71 NotificationManager(ThreadSafeSender* thread_safe_sender, 71 NotificationManager(ThreadSafeSender* thread_safe_sender,
72 NotificationDispatcher* notification_dispatcher); 72 NotificationDispatcher* notification_dispatcher);
73 73
74 // IPC message handlers. 74 // IPC message handlers.
(...skipping 18 matching lines...) Expand all
93 93
94 // Map to store the delegate associated with a notification request Id. 94 // Map to store the delegate associated with a notification request Id.
95 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_; 95 std::map<int, blink::WebNotificationDelegate*> active_page_notifications_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(NotificationManager); 97 DISALLOW_COPY_AND_ASSIGN(NotificationManager);
98 }; 98 };
99 99
100 } // namespace content 100 } // namespace content
101 101
102 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_ 102 #endif // CONTENT_CHILD_NOTIFICATIONS_NOTIFICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/notifications/notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698