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