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

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: Add Runtime flag for permissions 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 #include "public/platform/modules/permissions/WebPermissionType.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class ScriptState; 15 class ScriptState;
15 class ScriptValue; 16 class ScriptValue;
16 17
17 class Permissions final 18 class Permissions final
18 : public GarbageCollected<Permissions> 19 : public GarbageCollected<Permissions>
19 , public ScriptWrappable { 20 , public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
21 public: 22 public:
22 DEFINE_INLINE_TRACE() { } 23 DEFINE_INLINE_TRACE() { }
23 24
24 ScriptPromise query(ScriptState*, const ScriptValue&); 25 ScriptPromise query(ScriptState*, const ScriptValue&);
26 ScriptPromise revoke(ScriptState*, const ScriptValue&);
27
28 private:
29 WebPermissionType convertPermissionStringToType(const String& name);
mlamouri (slow - plz ping) 2015/07/17 13:16:18 Could you have this method in an anonymous namespa
Lalit Maganti 2015/07/17 13:47:35 Done.
25 }; 30 };
26 31
27 } // namespace blink 32 } // namespace blink
28 33
29 #endif // Permissions_h 34 #endif // Permissions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698