Chromium Code Reviews| 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 { |
|
USE s.singapati at gmail.com
2015/05/18 15:51:16
This is some what duplication. Probably enum Binar
|
| + 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( |
| 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 |