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

Side by Side Diff: content/common/presentation/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: Updated callback handling, message invalidation and and sending generic message struct. Created 5 years, 8 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698