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