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

Unified Diff: public/platform/modules/presentation/WebPresentationClient.h

Issue 1131463006: [PresentationAPI] Plumbing send(Blob) from PresentationSession IDL to platform/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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: public/platform/modules/presentation/WebPresentationClient.h
diff --git a/public/platform/modules/presentation/WebPresentationClient.h b/public/platform/modules/presentation/WebPresentationClient.h
index 15e4d6e15845395d0046f36c3c35d3e8381763bf..a60ce32b0c16c19db37dcb634e5bff7ff6b34f7d 100644
--- a/public/platform/modules/presentation/WebPresentationClient.h
+++ b/public/platform/modules/presentation/WebPresentationClient.h
@@ -44,8 +44,17 @@ public:
virtual void sendString(const WebString& presentationUrl, const WebString& presentationId, const WebString& message) = 0;
// Called when the frame requests to send ArrayBuffer/View data to an existing session.
+ // Embedder copies the |data| and the ownership is not transferred.
virtual void sendArrayBuffer(const WebString& presentationUrl, const WebString& presentationId, const uint8_t* data, size_t length) = 0;
+ // Called when the frame requests to send Blob data to an existing session.
+ // Embedder copies the |data| and the ownership is not transferred.
+ virtual void sendBlobData(const WebString& presentationUrl, const WebString& presentationId, const uint8_t* data, size_t length)
+ {
+ // TODO(s.singapati): Make this method pure virtual once Chromium has the implementation.
+ BLINK_ASSERT_NOT_REACHED();
+ }
+
// Called when the frame requests to close an existing session.
virtual void closeSession(const WebString& url, const WebString& presentationId) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698