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 |