| 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 #include "wtf/Vector.h" | 17 #include "wtf/Vector.h" |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 | 20 |
| 21 // Implements the PresentationRequest interface from the Presentation API from | 21 // Implements the PresentationRequest interface from the Presentation API from |
| 22 // which websites can start or join presentation connections. | 22 // which websites can start or join presentation connections. |
| 23 class MODULES_EXPORT PresentationRequest final | 23 class MODULES_EXPORT PresentationRequest final |
| 24 : public EventTargetWithInlineData, | 24 : public EventTargetWithInlineData, |
| 25 public ActiveScriptWrappable<PresentationRequest>, | 25 public ActiveScriptWrappable<PresentationRequest>, |
| 26 public ContextLifecycleObserver { | 26 public ContextClient { |
| 27 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); | 27 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); |
| 28 DEFINE_WRAPPERTYPEINFO(); | 28 DEFINE_WRAPPERTYPEINFO(); |
| 29 | 29 |
| 30 public: | 30 public: |
| 31 ~PresentationRequest() = default; | 31 ~PresentationRequest() = default; |
| 32 | 32 |
| 33 static PresentationRequest* create(ExecutionContext*, | 33 static PresentationRequest* create(ExecutionContext*, |
| 34 const String& url, | 34 const String& url, |
| 35 ExceptionState&); | 35 ExceptionState&); |
| 36 static PresentationRequest* create(ExecutionContext*, | 36 static PresentationRequest* create(ExecutionContext*, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 64 | 64 |
| 65 void recordOriginTypeAccess(ExecutionContext*) const; | 65 void recordOriginTypeAccess(ExecutionContext*) const; |
| 66 | 66 |
| 67 Member<PresentationAvailabilityProperty> m_availabilityProperty; | 67 Member<PresentationAvailabilityProperty> m_availabilityProperty; |
| 68 Vector<KURL> m_urls; | 68 Vector<KURL> m_urls; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // PresentationRequest_h | 73 #endif // PresentationRequest_h |
| OLD | NEW |