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

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: Fix layout test: change postMessage to send. 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..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;
« no previous file with comments | « Source/modules/presentation/PresentationController.cpp ('k') | Source/modules/presentation/PresentationSession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698