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/ContextLifecycleObserver.h" | 10 #include "core/dom/ContextLifecycleObserver.h" |
11 #include "core/events/EventTarget.h" | 11 #include "core/events/EventTarget.h" |
12 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
13 #include "modules/presentation/PresentationPromiseProperty.h" | 13 #include "modules/presentation/PresentationPromiseProperty.h" |
14 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
15 #include "platform/heap/Heap.h" | 15 #include "platform/heap/Heap.h" |
16 #include "platform/weborigin/KURL.h" | 16 #include "platform/weborigin/KURL.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 // Implements the PresentationRequest interface from the Presentation API from | 20 // Implements the PresentationRequest interface from the Presentation API from |
21 // which websites can start or join presentation connections. | 21 // which websites can start or join presentation connections. |
22 class MODULES_EXPORT PresentationRequest final | 22 class MODULES_EXPORT PresentationRequest final |
23 : public EventTargetWithInlineData, | 23 : public EventTargetWithInlineData, |
24 public ActiveScriptWrappable<PresentationRequest>, | 24 public ActiveScriptWrappable<PresentationRequest>, |
25 public ContextLifecycleObserver { | 25 public ContextClient { |
26 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); | 26 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); |
27 DEFINE_WRAPPERTYPEINFO(); | 27 DEFINE_WRAPPERTYPEINFO(); |
28 | 28 |
29 public: | 29 public: |
30 ~PresentationRequest() = default; | 30 ~PresentationRequest() = default; |
31 | 31 |
32 static PresentationRequest* create(ExecutionContext*, | 32 static PresentationRequest* create(ExecutionContext*, |
33 const String& url, | 33 const String& url, |
34 ExceptionState&); | 34 ExceptionState&); |
35 | 35 |
(...skipping 22 matching lines...) Expand all Loading... |
58 private: | 58 private: |
59 PresentationRequest(ExecutionContext*, const KURL&); | 59 PresentationRequest(ExecutionContext*, const KURL&); |
60 | 60 |
61 Member<PresentationAvailabilityProperty> m_availabilityProperty; | 61 Member<PresentationAvailabilityProperty> m_availabilityProperty; |
62 KURL m_url; | 62 KURL m_url; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace blink | 65 } // namespace blink |
66 | 66 |
67 #endif // PresentationRequest_h | 67 #endif // PresentationRequest_h |
OLD | NEW |