| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 PresentationRequest_h | 5 #ifndef PresentationRequest_h |
| 6 #define PresentationRequest_h | 6 #define PresentationRequest_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
| 10 #include "core/dom/ActiveDOMObject.h" | 10 #include "core/dom/SuspendableObject.h" |
| 11 #include "core/events/EventTarget.h" | 11 #include "core/events/EventTarget.h" |
| 12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 13 #include "platform/heap/Heap.h" | 13 #include "platform/heap/Heap.h" |
| 14 #include "platform/weborigin/KURL.h" | 14 #include "platform/weborigin/KURL.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 // Implements the PresentationRequest interface from the Presentation API from | 18 // Implements the PresentationRequest interface from the Presentation API from |
| 19 // which websites can start or join presentation connections. | 19 // which websites can start or join presentation connections. |
| 20 class PresentationRequest final : public EventTargetWithInlineData, | 20 class PresentationRequest final : public EventTargetWithInlineData, |
| 21 public ActiveScriptWrappable, | 21 public ActiveScriptWrappable, |
| 22 public ActiveDOMObject { | 22 public SuspendableObject { |
| 23 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); | 23 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); |
| 24 DEFINE_WRAPPERTYPEINFO(); | 24 DEFINE_WRAPPERTYPEINFO(); |
| 25 | 25 |
| 26 public: | 26 public: |
| 27 ~PresentationRequest() = default; | 27 ~PresentationRequest() = default; |
| 28 | 28 |
| 29 static PresentationRequest* create(ExecutionContext*, | 29 static PresentationRequest* create(ExecutionContext*, |
| 30 const String& url, | 30 const String& url, |
| 31 ExceptionState&); | 31 ExceptionState&); |
| 32 | 32 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 PresentationRequest(ExecutionContext*, const KURL&); | 56 PresentationRequest(ExecutionContext*, const KURL&); |
| 57 | 57 |
| 58 KURL m_url; | 58 KURL m_url; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace blink | 61 } // namespace blink |
| 62 | 62 |
| 63 #endif // PresentationRequest_h | 63 #endif // PresentationRequest_h |
| OLD | NEW |