1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_MESSAGE_H_
6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_MESSAGE_H_
11 #include "base/memory/scoped_ptr.h"
12 #include "content/common/content_export.h"
16 enum PresentationMessageType
{
22 // Represents a presentation session message.
23 // If this is a text message, |data| is null; otherwise, |message| is null.
24 // Empty messages are allowed.
25 struct CONTENT_EXPORT PresentationSessionMessage
{
27 explicit PresentationSessionMessage(PresentationMessageType type
);
28 ~PresentationSessionMessage();
30 bool is_binary() const;
31 const PresentationMessageType type
;
33 scoped_ptr
<std::vector
<uint8_t>> data
;
36 } // namespace content
38 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_