Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: Source/modules/presentation/PresentationSession.h

Issue 1002293005: [PresentationAPI] Plumbing send() from PresentationSession IDL to platform/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Forward declare the Blob class. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/presentation/PresentationSession.h
diff --git a/Source/modules/presentation/PresentationSession.h b/Source/modules/presentation/PresentationSession.h
index 1fc4c309f8a8c8b0dbfa5ba1515fba0a31d0da8d..ddc179e03dcb590472075338923f7aa927f98d61 100644
--- a/Source/modules/presentation/PresentationSession.h
+++ b/Source/modules/presentation/PresentationSession.h
@@ -16,6 +16,9 @@ class AtomicString;
namespace blink {
+class Blob;
+class DOMArrayBuffer;
+class DOMArrayBufferView;
class Presentation;
class PresentationController;
@@ -39,7 +42,10 @@ 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(Blob* data, ExceptionState&);
+ void send(PassRefPtr<DOMArrayBuffer> data, ExceptionState&);
+ void send(PassRefPtr<DOMArrayBufferView> data, ExceptionState&);
void close();
DEFINE_ATTRIBUTE_EVENT_LISTENER(message);

Powered by Google App Engine
This is Rietveld 408576698