Index: Source/modules/presentation/PresentationSession.h |
diff --git a/Source/modules/presentation/PresentationSession.h b/Source/modules/presentation/PresentationSession.h |
index 1fc4c309f8a8c8b0dbfa5ba1515fba0a31d0da8d..fccd2ee783d40848e5045f0bee620505e0f6aa6e 100644 |
--- a/Source/modules/presentation/PresentationSession.h |
+++ b/Source/modules/presentation/PresentationSession.h |
@@ -16,6 +16,8 @@ class AtomicString; |
namespace blink { |
+class DOMArrayBuffer; |
+class DOMArrayBufferView; |
class Presentation; |
class PresentationController; |
@@ -39,7 +41,9 @@ public: |
const String id() const { return m_id; } |
const WTF::AtomicString& state() const; |
- void postMessage(const String& message); |
+ void send(const String& message, ExceptionState&); |
+ void send(PassRefPtr<DOMArrayBuffer> data, ExceptionState&); |
+ void send(PassRefPtr<DOMArrayBufferView> data, ExceptionState&); |
void close(); |
DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
@@ -59,6 +63,9 @@ private: |
// detached from the document. |
PresentationController* presentationController(); |
+ // Common send method for both ArrayBufferView and ArrayBuffer. |
+ void sendInternal(const uint8_t* data, size_t, ExceptionState&); |
+ |
String m_id; |
String m_url; |
WebPresentationSessionState m_state; |