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

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 proper tests and fix Mounir's comments 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"
mlamouri (slow - plz ping) 2015/07/20 14:14:12 nit: I think you can remove that header.
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&);
25 }; 27 };
26 28
27 } // namespace blink 29 } // namespace blink
28 30
29 #endif // Permissions_h 31 #endif // Permissions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698