Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / public / browser / presentation_session_message.h
blobd3192c04e27147dc71a00dbd55ff3e68a18828d1
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_
8 #include <string>
9 #include <vector>
11 #include "base/memory/scoped_ptr.h"
12 #include "content/common/content_export.h"
14 namespace content {
16 enum PresentationMessageType {
17 TEXT,
18 ARRAY_BUFFER,
19 BLOB,
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 {
26 public:
27 explicit PresentationSessionMessage(PresentationMessageType type);
28 ~PresentationSessionMessage();
30 bool is_binary() const;
31 const PresentationMessageType type;
32 std::string message;
33 scoped_ptr<std::vector<uint8_t>> data;
36 } // namespace content
38 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_