Chromium Code Reviews| 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_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "content/common/content_export.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 enum CONTENT_EXPORT PresentationMessageType { | |
| 16 TEXT, | |
| 17 ARRAY_BUFFER, | |
| 18 }; | |
| 19 | |
| 20 // Wrapper for text and binary message to be exchanged | |
| 21 // between presentation sessions. | |
| 22 struct CONTENT_EXPORT PresentationMessageRequest { | |
| 23 PresentationMessageRequest( | |
| 24 const std::string& presentation_url, | |
| 25 const std::string& presentation_id, | |
| 26 PresentationMessageType type, | |
| 27 const std::string& message, | |
| 28 const std::vector<uint8_t>& data); | |
| 29 ~PresentationMessageRequest(); | |
| 30 | |
| 31 const std::string presentation_url; | |
| 32 const std::string presentation_id; | |
| 33 PresentationMessageType type; | |
| 34 const std::string message; | |
|
imcheng (use chromium acct)
2015/04/30 20:11:30
Could you add some comments about this field being
USE s.singapati at gmail.com
2015/05/04 16:40:28
Done.
| |
| 35 const std::vector<uint8_t> data; | |
| 36 }; | |
| 37 | |
| 38 } // namespace content | |
| 39 | |
| 40 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_ | |
| OLD | NEW |