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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 , public ScriptWrappable { | 21 , public ScriptWrappable { |
22 DEFINE_WRAPPERTYPEINFO(); | 22 DEFINE_WRAPPERTYPEINFO(); |
23 public: | 23 public: |
24 DEFINE_INLINE_TRACE() { } | 24 DEFINE_INLINE_TRACE() { } |
25 | 25 |
26 // TODO(mlamouri): Find better place for this. https://crbug.com/510948 | 26 // TODO(mlamouri): Find better place for this. https://crbug.com/510948 |
27 static WebPermissionClient* getClient(ExecutionContext*); | 27 static WebPermissionClient* getClient(ExecutionContext*); |
28 | 28 |
29 ScriptPromise query(ScriptState*, const Dictionary&); | 29 ScriptPromise query(ScriptState*, const Dictionary&); |
30 ScriptPromise request(ScriptState*, const Dictionary&); | 30 ScriptPromise request(ScriptState*, const Dictionary&); |
31 ScriptPromise request(ScriptState*, const Vector<Dictionary>&); | |
32 ScriptPromise revoke(ScriptState*, const Dictionary&); | 31 ScriptPromise revoke(ScriptState*, const Dictionary&); |
| 32 ScriptPromise requestAll(ScriptState*, const Vector<Dictionary>&); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace blink | 35 } // namespace blink |
36 | 36 |
37 #endif // Permissions_h | 37 #endif // Permissions_h |
OLD | NEW |