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

Unified Diff: content/public/browser/presentation_session_message.h

Issue 1140713005: [PresentationAPI] Implements send API for Blob data from WebPresentationClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated unit tests 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: content/public/browser/presentation_session_message.h
diff --git a/content/public/browser/presentation_session_message.h b/content/public/browser/presentation_session_message.h
index 54f65fcc84e5360a583e11e20454f525e80dced2..d021347166c269509b265d189bdf275daafb8991 100644
--- a/content/public/browser/presentation_session_message.h
+++ b/content/public/browser/presentation_session_message.h
@@ -13,6 +13,12 @@
namespace content {
+enum CONTENT_EXPORT PresentationMessageType {
+ TEXT,
+ ARRAY_BUFFER,
+ BLOB,
+};
+
// Represents a presentation session message.
// If this is a text message, |data| is null; otherwise, |message| is null.
// Empty messages are allowed.
@@ -30,13 +36,15 @@ struct CONTENT_EXPORT PresentationSessionMessage {
static scoped_ptr<PresentationSessionMessage> CreateBinaryMessage(
mark a. foltz 2015/06/02 23:51:02 Prefer explicit methods to parallel the above: Cr
USE s.singapati at gmail.com 2015/06/03 15:03:50 Done.
const std::string& presentation_url,
const std::string& presentation_id,
- scoped_ptr<std::vector<uint8_t>> data);
+ scoped_ptr<std::vector<uint8_t>> data,
+ PresentationMessageType type);
bool is_binary() const;
std::string presentation_url;
std::string presentation_id;
scoped_ptr<std::string> message;
scoped_ptr<std::vector<uint8_t>> data;
+ PresentationMessageType type;
private:
PresentationSessionMessage(const std::string& presentation_url,
@@ -44,7 +52,8 @@ struct CONTENT_EXPORT PresentationSessionMessage {
scoped_ptr<std::string> message);
PresentationSessionMessage(const std::string& presentation_url,
const std::string& presentation_id,
- scoped_ptr<std::vector<uint8_t>> data);
+ scoped_ptr<std::vector<uint8_t>> data,
+ PresentationMessageType type);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698