Chromium Code Reviews| Index: content/public/browser/presentation_message.h |
| diff --git a/content/public/browser/presentation_message.h b/content/public/browser/presentation_message.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f069e57adf054f1504f24f259c768d2c62d79396 |
| --- /dev/null |
| +++ b/content/public/browser/presentation_message.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_ |
| +#define CONTENT_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "content/common/content_export.h" |
| + |
| +namespace content { |
| + |
| +enum CONTENT_EXPORT PresentationMessageType { |
| + TEXT, |
| + ARRAY_BUFFER, |
| +}; |
| + |
| +// Wrapper for text and binary message to be exchanged |
| +// between presentation sessions. |
| +struct CONTENT_EXPORT PresentationMessageRequest { |
| + PresentationMessageRequest( |
| + const std::string& presentation_url, |
| + const std::string& presentation_id, |
| + PresentationMessageType type, |
| + const std::string& message, |
| + const std::vector<uint8_t>& data); |
| + ~PresentationMessageRequest(); |
| + |
| + const std::string presentation_url; |
| + const std::string presentation_id; |
| + PresentationMessageType type; |
| + 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.
|
| + const std::vector<uint8_t> data; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_ |