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

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

Issue 1037483003: [PresentationAPI] Implementing send() from WebPresentationClient to the PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved presentation_message.h/.cc to content/public/browser/ Created 5 years, 7 months 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698