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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/NotificationPermissionClient.h

Issue 2244913002: Remove content::NotificationPermissionDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions_typemaps
Patch Set: Rebased. Created 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NotificationPermissionClient_h
6 #define NotificationPermissionClient_h
7
8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "modules/ModulesExport.h"
10 #include "platform/Supplementable.h"
11
12 namespace blink {
13
14 class ExecutionContext;
15 class LocalFrame;
16 class NotificationPermissionCallback;
17 class ScriptState;
18
19 class NotificationPermissionClient : public Supplement<LocalFrame> {
20 public:
21 virtual ~NotificationPermissionClient() { }
22
23 // Requests user permission to show platform notifications from the origin o f the
24 // current frame. The provided callback will be ran when the user has made a decision.
25 virtual ScriptPromise requestPermission(ScriptState*, NotificationPermission Callback*) = 0;
26
27 // Supplement requirements.
28 static const char* supplementName();
29 static NotificationPermissionClient* from(ExecutionContext*);
30 };
31
32 MODULES_EXPORT void provideNotificationPermissionClientTo(LocalFrame&, Notificat ionPermissionClient*);
33
34 } // namespace blink
35
36 #endif // NotificationPermissionClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698