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

Side by Side Diff: Source/modules/permissions/Permissions.h

Issue 1234023002: blink: permissions: add plumbing to revoke permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 5 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 Permissions_h 5 #ifndef Permissions_h
6 #define Permissions_h 6 #define Permissions_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ScriptState; 14 class ScriptState;
15 class ScriptValue; 15 class ScriptValue;
16 class WebPermissionClient; 16 class WebPermissionClient;
17 17
18 class Permissions final 18 class Permissions final
19 : public GarbageCollected<Permissions> 19 : public GarbageCollected<Permissions>
20 , public ScriptWrappable { 20 , public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 public: 22 public:
23 DEFINE_INLINE_TRACE() { } 23 DEFINE_INLINE_TRACE() { }
24 24
25 // TODO(mlamouri): Find better place for this. https://crbug.com/510948 25 // TODO(mlamouri): Find better place for this. https://crbug.com/510948
26 static WebPermissionClient* getClient(ExecutionContext*); 26 static WebPermissionClient* getClient(ExecutionContext*);
27 27
28 ScriptPromise query(ScriptState*, const ScriptValue&); 28 ScriptPromise query(ScriptState*, const ScriptValue&);
29 ScriptPromise revoke(ScriptState*, const ScriptValue&);
29 }; 30 };
30 31
31 } // namespace blink 32 } // namespace blink
32 33
33 #endif // Permissions_h 34 #endif // Permissions_h
OLDNEW
« no previous file with comments | « Source/modules/permissions/PermissionQueryCallback.cpp ('k') | Source/modules/permissions/Permissions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698