| 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 PresentationSession_h | 5 #ifndef PresentationSession_h |
| 6 #define PresentationSession_h | 6 #define PresentationSession_h |
| 7 | 7 |
| 8 #include "core/events/EventTarget.h" | 8 #include "core/events/EventTarget.h" |
| 9 #include "core/frame/DOMWindowProperty.h" | 9 #include "core/frame/DOMWindowProperty.h" |
| 10 #include "public/platform/modules/presentation/WebPresentationSessionClient.h" | 10 #include "public/platform/modules/presentation/WebPresentationSessionClient.h" |
| 11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
| 12 | 12 |
| 13 namespace WTF { | 13 namespace WTF { |
| 14 class AtomicString; | 14 class AtomicString; |
| 15 } // namespace WTF | 15 } // namespace WTF |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class DOMArrayBuffer; | 19 class DOMArrayBuffer; |
| 20 class DOMArrayBufferView; | 20 class DOMArrayBufferView; |
| 21 class Presentation; | 21 class Presentation; |
| 22 class PresentationController; | 22 class PresentationController; |
| 23 | 23 |
| 24 class PresentationSession final | 24 class PresentationSession final |
| 25 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationSes
sion> | 25 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationSes
sion> |
| 26 , public DOMWindowProperty { | 26 , public DOMWindowProperty { |
| 27 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<P
resentationSession>); | 27 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationSession); |
| 28 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationSession); | 28 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationSession); |
| 29 DEFINE_WRAPPERTYPEINFO(); | 29 DEFINE_WRAPPERTYPEINFO(); |
| 30 public: | 30 public: |
| 31 static PresentationSession* take(WebPresentationSessionClient*, Presentation
*); | 31 static PresentationSession* take(WebPresentationSessionClient*, Presentation
*); |
| 32 static void dispose(WebPresentationSessionClient*); | 32 static void dispose(WebPresentationSessionClient*); |
| 33 virtual ~PresentationSession(); | 33 virtual ~PresentationSession(); |
| 34 | 34 |
| 35 // EventTarget implementation. | 35 // EventTarget implementation. |
| 36 virtual const AtomicString& interfaceName() const override; | 36 virtual const AtomicString& interfaceName() const override; |
| 37 virtual ExecutionContext* executionContext() const override; | 37 virtual ExecutionContext* executionContext() const override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void sendInternal(const uint8_t* data, size_t, ExceptionState&); | 70 void sendInternal(const uint8_t* data, size_t, ExceptionState&); |
| 71 | 71 |
| 72 String m_id; | 72 String m_id; |
| 73 String m_url; | 73 String m_url; |
| 74 WebPresentationSessionState m_state; | 74 WebPresentationSessionState m_state; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // PresentationSession_h | 79 #endif // PresentationSession_h |
| OLD | NEW |