| 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 80e8050ca0556616e7d7912e45bfdddde3bc0485..d3192c04e27147dc71a00dbd55ff3e68a18828d1 100644
|
| --- a/content/public/browser/presentation_session_message.h
|
| +++ b/content/public/browser/presentation_session_message.h
|
| @@ -24,41 +24,13 @@ enum PresentationMessageType {
|
| // Empty messages are allowed.
|
| struct CONTENT_EXPORT PresentationSessionMessage {
|
| public:
|
| + explicit PresentationSessionMessage(PresentationMessageType type);
|
| ~PresentationSessionMessage();
|
|
|
| - // Creates string message, which takes the ownership of |message|.
|
| - static scoped_ptr<PresentationSessionMessage> CreateStringMessage(
|
| - const std::string& presentation_url,
|
| - const std::string& presentation_id,
|
| - scoped_ptr<std::string> message);
|
| -
|
| - // Creates array buffer message, which takes the ownership of |data|.
|
| - static scoped_ptr<PresentationSessionMessage> CreateArrayBufferMessage(
|
| - const std::string& presentation_url,
|
| - const std::string& presentation_id,
|
| - scoped_ptr<std::vector<uint8_t>> data);
|
| -
|
| - // Creates blob message, which takes the ownership of |data|.
|
| - static scoped_ptr<PresentationSessionMessage> CreateBlobMessage(
|
| - const std::string& presentation_url,
|
| - const std::string& presentation_id,
|
| - scoped_ptr<std::vector<uint8_t>> data);
|
| -
|
| bool is_binary() const;
|
| - std::string presentation_url;
|
| - std::string presentation_id;
|
| - PresentationMessageType type;
|
| - scoped_ptr<std::string> message;
|
| + const PresentationMessageType type;
|
| + std::string message;
|
| scoped_ptr<std::vector<uint8_t>> data;
|
| -
|
| - private:
|
| - PresentationSessionMessage(const std::string& presentation_url,
|
| - const std::string& presentation_id,
|
| - scoped_ptr<std::string> message);
|
| - PresentationSessionMessage(const std::string& presentation_url,
|
| - const std::string& presentation_id,
|
| - PresentationMessageType type,
|
| - scoped_ptr<std::vector<uint8_t>> data);
|
| };
|
|
|
| } // namespace content
|
|
|