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

Side by Side Diff: third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.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
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 WebNotificationManager_h 5 #ifndef WebNotificationManager_h
6 #define WebNotificationManager_h 6 #define WebNotificationManager_h
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebString.h" 9 #include "public/platform/WebString.h"
10 #include "public/platform/WebVector.h" 10 #include "public/platform/WebVector.h"
11 #include "public/platform/modules/notifications/WebNotificationData.h" 11 #include "public/platform/modules/notifications/WebNotificationData.h"
12 #include "public/platform/modules/notifications/WebNotificationResources.h" 12 #include "public/platform/modules/notifications/WebNotificationResources.h"
13 #include <memory> 13 #include <memory>
14 #include <stdint.h> 14 #include <stdint.h>
15 15
16 namespace blink { 16 namespace permissions {
17
18 namespace mojom { 17 namespace mojom {
19 enum class PermissionStatus; 18 enum class PermissionStatus;
20 } 19 }
20 }
21
22 namespace blink {
21 23
22 class WebNotificationDelegate; 24 class WebNotificationDelegate;
23 class WebSecurityOrigin; 25 class WebSecurityOrigin;
24 class WebServiceWorkerRegistration; 26 class WebServiceWorkerRegistration;
25 27
26 // Structure representing the info associated with a persistent notification. 28 // Structure representing the info associated with a persistent notification.
27 struct WebPersistentNotificationInfo { 29 struct WebPersistentNotificationInfo {
28 int64_t persistentId = 0; 30 int64_t persistentId = 0;
29 WebNotificationData data; 31 WebNotificationData data;
30 }; 32 };
(...skipping 24 matching lines...) Expand all
55 virtual void close(WebNotificationDelegate*) = 0; 57 virtual void close(WebNotificationDelegate*) = 0;
56 58
57 // Closes a persistent notification identified by its persistent notificatio n Id. 59 // Closes a persistent notification identified by its persistent notificatio n Id.
58 virtual void closePersistent(const WebSecurityOrigin&, int64_t persistentNot ificationId) = 0; 60 virtual void closePersistent(const WebSecurityOrigin&, int64_t persistentNot ificationId) = 0;
59 61
60 // Indicates that the delegate object is being destroyed, and must no longer 62 // Indicates that the delegate object is being destroyed, and must no longer
61 // be used by the embedder to dispatch events. 63 // be used by the embedder to dispatch events.
62 virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0; 64 virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0;
63 65
64 // Synchronously checks the permission level for the given origin. 66 // Synchronously checks the permission level for the given origin.
65 virtual mojom::PermissionStatus checkPermission(const WebSecurityOrigin&) = 0; 67 virtual permissions::mojom::PermissionStatus checkPermission(const WebSecuri tyOrigin&) = 0;
66 }; 68 };
67 69
68 } // namespace blink 70 } // namespace blink
69 71
70 #endif // WebNotificationManager_h 72 #endif // WebNotificationManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/blink.gyp ('k') | third_party/WebKit/public/platform/modules/permissions/permission.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698