| 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/permission.mojom-blink.h" | 11 #include "public/platform/modules/permissions/permission.mojom-blink.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class Dictionary; | 15 class Dictionary; |
| 16 class ScriptPromiseResolver; | 16 class ScriptPromiseResolver; |
| 17 class ScriptState; | 17 class ScriptState; |
| 18 class ScriptValue; | 18 class ScriptValue; |
| 19 class WebPermissionClient; | |
| 20 | 19 |
| 21 class Permissions final : public GarbageCollectedFinalized<Permissions>, | 20 class Permissions final : public GarbageCollectedFinalized<Permissions>, |
| 22 public ScriptWrappable { | 21 public ScriptWrappable { |
| 23 DEFINE_WRAPPERTYPEINFO(); | 22 DEFINE_WRAPPERTYPEINFO(); |
| 24 | 23 |
| 25 public: | 24 public: |
| 26 DEFINE_INLINE_TRACE() {} | 25 DEFINE_INLINE_TRACE() {} |
| 27 | 26 |
| 28 // TODO(mlamouri): Find better place for this. https://crbug.com/510948 | 27 // TODO(mlamouri): Find better place for this. https://crbug.com/510948 |
| 29 static bool connectToService(ExecutionContext*, | 28 static bool connectToService(ExecutionContext*, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 Vector<mojom::blink::PermissionName>, | 43 Vector<mojom::blink::PermissionName>, |
| 45 Vector<int>, | 44 Vector<int>, |
| 46 const Vector<mojom::blink::PermissionStatus>&); | 45 const Vector<mojom::blink::PermissionStatus>&); |
| 47 | 46 |
| 48 mojom::blink::PermissionServicePtr m_service; | 47 mojom::blink::PermissionServicePtr m_service; |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 } // namespace blink | 50 } // namespace blink |
| 52 | 51 |
| 53 #endif // Permissions_h | 52 #endif // Permissions_h |
| OLD | NEW |