| 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 PermissionStatus_h | 5 #ifndef PermissionStatus_h |
| 6 #define PermissionStatus_h | 6 #define PermissionStatus_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "core/dom/SuspendableObject.h" | 9 #include "core/dom/SuspendableObject.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| 11 #include "mojo/public/cpp/bindings/binding.h" | 11 #include "mojo/public/cpp/bindings/binding.h" |
| 12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 13 #include "platform/wtf/text/AtomicString.h" |
| 14 #include "platform/wtf/text/WTFString.h" |
| 13 #include "public/platform/modules/permissions/permission.mojom-blink.h" | 15 #include "public/platform/modules/permissions/permission.mojom-blink.h" |
| 14 #include "wtf/text/AtomicString.h" | |
| 15 #include "wtf/text/WTFString.h" | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class ExecutionContext; | 19 class ExecutionContext; |
| 20 class ScriptPromiseResolver; | 20 class ScriptPromiseResolver; |
| 21 | 21 |
| 22 // Expose the status of a given permission type for the current | 22 // Expose the status of a given permission type for the current |
| 23 // ExecutionContext. | 23 // ExecutionContext. |
| 24 class PermissionStatus final : public EventTargetWithInlineData, | 24 class PermissionStatus final : public EventTargetWithInlineData, |
| 25 public ActiveScriptWrappable<PermissionStatus>, | 25 public ActiveScriptWrappable<PermissionStatus>, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void OnPermissionStatusChange(MojoPermissionStatus); | 72 void OnPermissionStatusChange(MojoPermissionStatus); |
| 73 | 73 |
| 74 MojoPermissionStatus status_; | 74 MojoPermissionStatus status_; |
| 75 MojoPermissionDescriptor descriptor_; | 75 MojoPermissionDescriptor descriptor_; |
| 76 mojo::Binding<mojom::blink::PermissionObserver> binding_; | 76 mojo::Binding<mojom::blink::PermissionObserver> binding_; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // PermissionStatus_h | 81 #endif // PermissionStatus_h |
| OLD | NEW |