Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Side by Side Diff: content/public/browser/presentation_connection_message.h

Issue 2562603002: Updates SessionMessage to ConnectionMessage. (Closed)
Patch Set: More edits to test. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_MESSAGE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_CONNECTION_MESSAGE_H_
6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_MESSAGE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_CONNECTION_MESSAGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 enum PresentationMessageType { 18 enum PresentationMessageType {
19 TEXT, 19 TEXT,
20 ARRAY_BUFFER, 20 BINARY,
21 BLOB,
22 }; 21 };
23 22
24 // Represents a presentation session message. 23 // Represents a presentation connection message.
25 // If this is a text message, |data| is null; otherwise, |message| is null. 24 // If this is a text message, |data| is null; otherwise, |message| is null.
26 // Empty messages are allowed. 25 // Empty messages are allowed.
27 struct CONTENT_EXPORT PresentationSessionMessage { 26 struct CONTENT_EXPORT PresentationConnectionMessage {
28 public: 27 public:
29 explicit PresentationSessionMessage(PresentationMessageType type); 28 explicit PresentationConnectionMessage(PresentationMessageType type);
30 ~PresentationSessionMessage(); 29 ~PresentationConnectionMessage();
31 30
32 bool is_binary() const; 31 bool is_binary() const;
33 const PresentationMessageType type; 32 const PresentationMessageType type;
34 std::string message; 33 std::string message;
35 std::unique_ptr<std::vector<uint8_t>> data; 34 std::unique_ptr<std::vector<uint8_t>> data;
36 }; 35 };
37 36
38 } // namespace content 37 } // namespace content
39 38
40 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SESSION_H_ 39 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_CONNECTION_MESSAGE_H_
OLDNEW
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/presentation_connection_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698