| 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/fileapi/Blob.h" | 9 #include "core/fileapi/Blob.h" |
| 10 #include "core/fileapi/FileError.h" | 10 #include "core/fileapi/FileError.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class PresentationController; | 25 class PresentationController; |
| 26 | 26 |
| 27 class PresentationSession final | 27 class PresentationSession final |
| 28 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationSes
sion> | 28 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationSes
sion> |
| 29 , public DOMWindowProperty { | 29 , public DOMWindowProperty { |
| 30 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationSession); | 30 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationSession); |
| 31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationSession); | 31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationSession); |
| 32 DEFINE_WRAPPERTYPEINFO(); | 32 DEFINE_WRAPPERTYPEINFO(); |
| 33 public: | 33 public: |
| 34 static PresentationSession* take(WebPresentationSessionClient*, Presentation
*); | 34 static PresentationSession* take(WebPresentationSessionClient*, Presentation
*); |
| 35 virtual ~PresentationSession(); | 35 ~PresentationSession() override; |
| 36 | 36 |
| 37 // EventTarget implementation. | 37 // EventTarget implementation. |
| 38 virtual const AtomicString& interfaceName() const override; | 38 const AtomicString& interfaceName() const override; |
| 39 virtual ExecutionContext* executionContext() const override; | 39 ExecutionContext* executionContext() const override; |
| 40 | 40 |
| 41 DECLARE_VIRTUAL_TRACE(); | 41 DECLARE_VIRTUAL_TRACE(); |
| 42 | 42 |
| 43 const String id() const { return m_id; } | 43 const String id() const { return m_id; } |
| 44 const WTF::AtomicString& state() const; | 44 const WTF::AtomicString& state() const; |
| 45 | 45 |
| 46 void send(const String& message, ExceptionState&); | 46 void send(const String& message, ExceptionState&); |
| 47 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&); | 47 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&); |
| 48 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&); | 48 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&); |
| 49 void send(Blob*, ExceptionState&); | 49 void send(Blob*, ExceptionState&); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // For Blob data handling. | 114 // For Blob data handling. |
| 115 Member<BlobLoader> m_blobLoader; | 115 Member<BlobLoader> m_blobLoader; |
| 116 Deque<OwnPtr<Message>> m_messages; | 116 Deque<OwnPtr<Message>> m_messages; |
| 117 | 117 |
| 118 BinaryType m_binaryType; | 118 BinaryType m_binaryType; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace blink | 121 } // namespace blink |
| 122 | 122 |
| 123 #endif // PresentationSession_h | 123 #endif // PresentationSession_h |
| OLD | NEW |