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/SuspendableObject.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 |
21 public ActiveScriptWrappable, | 21 : public EventTargetWithInlineData, |
22 public SuspendableObject { | 22 public ActiveScriptWrappable<PresentationRequest>, |
| 23 public SuspendableObject { |
23 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); | 24 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); |
24 DEFINE_WRAPPERTYPEINFO(); | 25 DEFINE_WRAPPERTYPEINFO(); |
25 | 26 |
26 public: | 27 public: |
27 ~PresentationRequest() = default; | 28 ~PresentationRequest() = default; |
28 | 29 |
29 static PresentationRequest* create(ExecutionContext*, | 30 static PresentationRequest* create(ExecutionContext*, |
30 const String& url, | 31 const String& url, |
31 ExceptionState&); | 32 ExceptionState&); |
32 | 33 |
(...skipping 21 matching lines...) Expand all Loading... |
54 | 55 |
55 private: | 56 private: |
56 PresentationRequest(ExecutionContext*, const KURL&); | 57 PresentationRequest(ExecutionContext*, const KURL&); |
57 | 58 |
58 KURL m_url; | 59 KURL m_url; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace blink | 62 } // namespace blink |
62 | 63 |
63 #endif // PresentationRequest_h | 64 #endif // PresentationRequest_h |
OLD | NEW |