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

Side by Side Diff: content/common/media/peer_connection_tracker_messages.h

Issue 2123863004: ScreenCapture for Android phase1, part II (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/values.h" 5 #include "base/values.h"
6 #include "content/common/content_export.h" 6 #include "content/common/content_export.h"
7 #include "ipc/ipc_message_macros.h" 7 #include "ipc/ipc_message_macros.h"
8 #include "ipc/ipc_platform_file.h" 8 #include "ipc/ipc_platform_file.h"
9 9
10 #undef IPC_MESSAGE_EXPORT 10 #undef IPC_MESSAGE_EXPORT
11 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 11 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
12 #define IPC_MESSAGE_START PeerConnectionTrackerMsgStart 12 #define IPC_MESSAGE_START PeerConnectionTrackerMsgStart
13 13
14 IPC_STRUCT_BEGIN(PeerConnectionInfo) 14 IPC_STRUCT_BEGIN(PeerConnectionInfo)
15 IPC_STRUCT_MEMBER(int, lid) 15 IPC_STRUCT_MEMBER(int, lid)
16 IPC_STRUCT_MEMBER(std::string, rtc_configuration) 16 IPC_STRUCT_MEMBER(std::string, rtc_configuration)
17 IPC_STRUCT_MEMBER(std::string, constraints) 17 IPC_STRUCT_MEMBER(std::string, constraints)
18 IPC_STRUCT_MEMBER(std::string, url) 18 IPC_STRUCT_MEMBER(std::string, url)
19 IPC_STRUCT_END() 19 IPC_STRUCT_END()
20 20
21 IPC_STRUCT_BEGIN(VideoInfo)
22 IPC_STRUCT_MEMBER(bool, video)
23 IPC_STRUCT_MEMBER(std::string, video_stream_source)
24 IPC_STRUCT_END()
25
21 // Messages sent from PeerConnectionTracker to PeerConnectionTrackerHost. 26 // Messages sent from PeerConnectionTracker to PeerConnectionTrackerHost.
22 IPC_MESSAGE_CONTROL1(PeerConnectionTrackerHost_AddPeerConnection, 27 IPC_MESSAGE_CONTROL1(PeerConnectionTrackerHost_AddPeerConnection,
23 PeerConnectionInfo /* info */) 28 PeerConnectionInfo /* info */)
24 IPC_MESSAGE_CONTROL1(PeerConnectionTrackerHost_RemovePeerConnection, 29 IPC_MESSAGE_CONTROL1(PeerConnectionTrackerHost_RemovePeerConnection,
25 int /* lid */) 30 int /* lid */)
26 IPC_MESSAGE_CONTROL3(PeerConnectionTrackerHost_UpdatePeerConnection, 31 IPC_MESSAGE_CONTROL3(PeerConnectionTrackerHost_UpdatePeerConnection,
27 int /* lid */, 32 int /* lid */,
28 std::string /* type */, 33 std::string /* type */,
29 std::string /* value */) 34 std::string /* value */)
30 IPC_MESSAGE_CONTROL2(PeerConnectionTrackerHost_AddStats, 35 IPC_MESSAGE_CONTROL2(PeerConnectionTrackerHost_AddStats,
31 int /* lid */, 36 int /* lid */,
32 base::ListValue /* value */) 37 base::ListValue /* value */)
33 IPC_MESSAGE_CONTROL5(PeerConnectionTrackerHost_GetUserMedia, 38 IPC_MESSAGE_CONTROL5(PeerConnectionTrackerHost_GetUserMedia,
34 std::string /*origin*/, 39 std::string /*origin*/,
35 bool /*audio*/, 40 bool /*audio*/,
36 bool /*video*/, 41 VideoInfo /*video_info*/,
37 // The constraints strings are for dispaly only and should 42 // The constraints strings are for dispaly only and should
38 // not be parsed by the browser for security reasons. 43 // not be parsed by the browser for security reasons.
39 std::string /* audio_constraints */, 44 std::string /* audio_constraints */,
40 std::string /* video_constraints */) 45 std::string /* video_constraints */)
41 46
42 // Messages sent to PeerConnectionTracker. 47 // Messages sent to PeerConnectionTracker.
43 IPC_MESSAGE_CONTROL0(PeerConnectionTracker_GetAllStats) 48 IPC_MESSAGE_CONTROL0(PeerConnectionTracker_GetAllStats)
44 IPC_MESSAGE_CONTROL0(PeerConnectionTracker_OnSuspend) 49 IPC_MESSAGE_CONTROL0(PeerConnectionTracker_OnSuspend)
45 IPC_MESSAGE_CONTROL2(PeerConnectionTracker_StartEventLog, 50 IPC_MESSAGE_CONTROL2(PeerConnectionTracker_StartEventLog,
46 int /* peer_connection_local_id */, 51 int /* peer_connection_local_id */,
47 IPC::PlatformFileForTransit /* file */) 52 IPC::PlatformFileForTransit /* file */)
48 IPC_MESSAGE_CONTROL1(PeerConnectionTracker_StopEventLog, 53 IPC_MESSAGE_CONTROL1(PeerConnectionTracker_StopEventLog,
49 int /* peer_connection_local_id */) 54 int /* peer_connection_local_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698