OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CONTENT_COMMON_PRESENTATION_PRESENTATION_MESSAGE_H_ | |
imcheng
2015/04/22 20:12:02
This file and the .cc file should go under content
USE s.singapati at gmail.com
2015/04/23 12:39:23
presentation_message.h needs to be included both i
| |
6 #define CONTENT_COMMON_PRESENTATION_PRESENTATION_MESSAGE_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "content/common/content_export.h" | |
12 #include "content/common/presentation/presentation_service.mojom.h" | |
13 | |
14 namespace content { | |
15 | |
16 enum CONTENT_EXPORT PresentationMessageType { | |
17 TEXT, | |
18 ARRAY_BUFFER, | |
19 }; | |
20 | |
21 // Message to be exchanged between presentation sessions. | |
22 struct CONTENT_EXPORT MessageRequest { | |
imcheng
2015/04/22 20:12:02
Please be more specific in the class name. Perhaps
USE s.singapati at gmail.com
2015/04/27 19:28:56
In mojom file: struct "SessionMessage" would be be
| |
23 MessageRequest( | |
24 const std::string& presentation_url, | |
25 const std::string& presentation_id, | |
26 const std::string& message); | |
27 MessageRequest( | |
28 const std::string& presentation_url, | |
29 const std::string& presentation_id, | |
30 const std::vector<uint8_t>& data); | |
31 MessageRequest(presentation::MessageRequestPtr request); | |
32 ~MessageRequest(); | |
33 | |
34 const std::string presentation_url; | |
35 const std::string presentation_id; | |
36 PresentationMessageType type; | |
37 const std::string message; | |
38 const std::vector<uint8_t> data; | |
39 }; | |
40 | |
41 } // namespace content | |
42 | |
43 #endif // CONTENT_COMMON_PRESENTATION_PRESENTATION_MESSAGE_H_ | |
OLD | NEW |