OLD | NEW |
---|---|
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 |
OLD | NEW |