| 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 WTF { | |
| 13 class AtomicString; | |
| 14 } // namespace WTF | |
| 15 | |
| 16 namespace blink { | 12 namespace blink { |
| 17 | 13 |
| 18 class ScriptState; | 14 class ScriptState; |
| 15 class ScriptValue; |
| 19 | 16 |
| 20 class Permissions final | 17 class Permissions final |
| 21 : public GarbageCollected<Permissions> | 18 : public GarbageCollected<Permissions> |
| 22 , public ScriptWrappable { | 19 , public ScriptWrappable { |
| 23 DEFINE_WRAPPERTYPEINFO(); | 20 DEFINE_WRAPPERTYPEINFO(); |
| 24 public: | 21 public: |
| 25 DEFINE_INLINE_TRACE() { } | 22 DEFINE_INLINE_TRACE() { } |
| 26 | 23 |
| 27 ScriptPromise query(ScriptState*, const AtomicString&); | 24 ScriptPromise query(ScriptState*, const ScriptValue&); |
| 28 }; | 25 }; |
| 29 | 26 |
| 30 } // namespace blink | 27 } // namespace blink |
| 31 | 28 |
| 32 #endif // Permissions_h | 29 #endif // Permissions_h |
| OLD | NEW |