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

Side by Side Diff: chrome/common/cast_messages.h

Issue 387933005: Cast: Refactor RTCP handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // IPC messages for the Cast transport API. 5 // IPC messages for the Cast transport API.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "media/cast/cast_sender.h" 9 #include "media/cast/cast_sender.h"
10 #include "media/cast/logging/logging_defines.h" 10 #include "media/cast/logging/logging_defines.h"
(...skipping 26 matching lines...) Expand all
37 IPC_STRUCT_TRAITS_MEMBER(data) 37 IPC_STRUCT_TRAITS_MEMBER(data)
38 IPC_STRUCT_TRAITS_END() 38 IPC_STRUCT_TRAITS_END()
39 39
40 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpDlrrReportBlock) 40 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpDlrrReportBlock)
41 IPC_STRUCT_TRAITS_MEMBER(last_rr) 41 IPC_STRUCT_TRAITS_MEMBER(last_rr)
42 IPC_STRUCT_TRAITS_MEMBER(delay_since_last_rr) 42 IPC_STRUCT_TRAITS_MEMBER(delay_since_last_rr)
43 IPC_STRUCT_TRAITS_END() 43 IPC_STRUCT_TRAITS_END()
44 44
45 IPC_STRUCT_TRAITS_BEGIN(media::cast::CastTransportRtpConfig) 45 IPC_STRUCT_TRAITS_BEGIN(media::cast::CastTransportRtpConfig)
46 IPC_STRUCT_TRAITS_MEMBER(ssrc) 46 IPC_STRUCT_TRAITS_MEMBER(ssrc)
47 IPC_STRUCT_TRAITS_MEMBER(feedback_ssrc)
48 IPC_STRUCT_TRAITS_MEMBER(c_name)
47 IPC_STRUCT_TRAITS_MEMBER(rtp_payload_type) 49 IPC_STRUCT_TRAITS_MEMBER(rtp_payload_type)
48 IPC_STRUCT_TRAITS_MEMBER(stored_frames) 50 IPC_STRUCT_TRAITS_MEMBER(stored_frames)
49 IPC_STRUCT_TRAITS_MEMBER(aes_key) 51 IPC_STRUCT_TRAITS_MEMBER(aes_key)
50 IPC_STRUCT_TRAITS_MEMBER(aes_iv_mask) 52 IPC_STRUCT_TRAITS_MEMBER(aes_iv_mask)
51 IPC_STRUCT_TRAITS_END() 53 IPC_STRUCT_TRAITS_END()
52 54
53 IPC_STRUCT_TRAITS_BEGIN(media::cast::SendRtcpFromRtpSenderData)
54 IPC_STRUCT_TRAITS_MEMBER(packet_type_flags)
55 IPC_STRUCT_TRAITS_MEMBER(sending_ssrc)
56 IPC_STRUCT_TRAITS_MEMBER(c_name)
57 IPC_STRUCT_TRAITS_MEMBER(ntp_seconds)
58 IPC_STRUCT_TRAITS_MEMBER(ntp_fraction)
59 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
60 IPC_STRUCT_TRAITS_END()
61
62 IPC_STRUCT_TRAITS_BEGIN(media::cast::PacketEvent) 55 IPC_STRUCT_TRAITS_BEGIN(media::cast::PacketEvent)
63 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp) 56 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
64 IPC_STRUCT_TRAITS_MEMBER(frame_id) 57 IPC_STRUCT_TRAITS_MEMBER(frame_id)
65 IPC_STRUCT_TRAITS_MEMBER(max_packet_id) 58 IPC_STRUCT_TRAITS_MEMBER(max_packet_id)
66 IPC_STRUCT_TRAITS_MEMBER(packet_id) 59 IPC_STRUCT_TRAITS_MEMBER(packet_id)
67 IPC_STRUCT_TRAITS_MEMBER(size) 60 IPC_STRUCT_TRAITS_MEMBER(size)
68 IPC_STRUCT_TRAITS_MEMBER(timestamp) 61 IPC_STRUCT_TRAITS_MEMBER(timestamp)
69 IPC_STRUCT_TRAITS_MEMBER(type) 62 IPC_STRUCT_TRAITS_MEMBER(type)
70 IPC_STRUCT_TRAITS_MEMBER(media_type) 63 IPC_STRUCT_TRAITS_MEMBER(media_type)
71 IPC_STRUCT_TRAITS_END() 64 IPC_STRUCT_TRAITS_END()
72 65
66 IPC_STRUCT_TRAITS_BEGIN(media::cast::FrameEvent)
67 IPC_STRUCT_TRAITS_MEMBER(rtp_timestamp)
68 IPC_STRUCT_TRAITS_MEMBER(frame_id)
69 IPC_STRUCT_TRAITS_MEMBER(size)
70 IPC_STRUCT_TRAITS_MEMBER(timestamp)
71 IPC_STRUCT_TRAITS_MEMBER(type)
72 IPC_STRUCT_TRAITS_MEMBER(media_type)
73 IPC_STRUCT_TRAITS_MEMBER(delay_delta)
74 IPC_STRUCT_TRAITS_MEMBER(key_frame)
75 IPC_STRUCT_TRAITS_MEMBER(target_bitrate)
76 IPC_STRUCT_TRAITS_END()
77
78 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpCastMessage)
79 IPC_STRUCT_TRAITS_MEMBER(media_ssrc)
80 IPC_STRUCT_TRAITS_MEMBER(ack_frame_id)
81 IPC_STRUCT_TRAITS_MEMBER(target_delay_ms)
82 IPC_STRUCT_TRAITS_MEMBER(missing_frames_and_packets)
83 IPC_STRUCT_TRAITS_END()
84
85 IPC_STRUCT_TRAITS_BEGIN(media::cast::RtcpRttReport)
86 IPC_STRUCT_TRAITS_MEMBER(rtt)
87 IPC_STRUCT_TRAITS_MEMBER(avg_rtt)
88 IPC_STRUCT_TRAITS_MEMBER(min_rtt)
89 IPC_STRUCT_TRAITS_MEMBER(max_rtt)
90 IPC_STRUCT_TRAITS_END()
91
73 // Cast messages sent from the browser to the renderer. 92 // Cast messages sent from the browser to the renderer.
74 93
75 IPC_MESSAGE_CONTROL2(CastMsg_ReceivedPacket, 94 IPC_MESSAGE_CONTROL3(CastMsg_Rtt,
76 int32 /* channel_id */, 95 int32 /* channel_id */,
77 media::cast::Packet /* packet */) 96 uint32 /* ssrc */,
97 media::cast::RtcpRttReport /* rtt_report */)
98
99 IPC_MESSAGE_CONTROL3(CastMsg_RtcpCastMessage,
100 int32 /* channel_id */,
101 uint32 /* ssrc */,
102 media::cast::RtcpCastMessage /* cast_message */)
78 103
79 IPC_MESSAGE_CONTROL2( 104 IPC_MESSAGE_CONTROL2(
80 CastMsg_NotifyStatusChange, 105 CastMsg_NotifyStatusChange,
81 int32 /* channel_id */, 106 int32 /* channel_id */,
82 media::cast::CastTransportStatus /* status */) 107 media::cast::CastTransportStatus /* status */)
83 108
84 IPC_MESSAGE_CONTROL2(CastMsg_RawEvents, 109 IPC_MESSAGE_CONTROL3(CastMsg_RawEvents,
85 int32 /* channel_id */, 110 int32 /* channel_id */,
86 std::vector<media::cast::PacketEvent> /* packet_events */) 111 std::vector<media::cast::PacketEvent> /* packet_events */,
112 std::vector<media::cast::FrameEvent> /* frame_events */)
87 113
88 // Cast messages sent from the renderer to the browser. 114 // Cast messages sent from the renderer to the browser.
89 115
90 IPC_MESSAGE_CONTROL2( 116 IPC_MESSAGE_CONTROL2(
91 CastHostMsg_InitializeAudio, 117 CastHostMsg_InitializeAudio,
92 int32 /*channel_id*/, 118 int32 /*channel_id*/,
93 media::cast::CastTransportRtpConfig /*config*/) 119 media::cast::CastTransportRtpConfig /*config*/)
94 120
95 IPC_MESSAGE_CONTROL2( 121 IPC_MESSAGE_CONTROL2(
96 CastHostMsg_InitializeVideo, 122 CastHostMsg_InitializeVideo,
97 int32 /*channel_id*/, 123 int32 /*channel_id*/,
98 media::cast::CastTransportRtpConfig /*config*/) 124 media::cast::CastTransportRtpConfig /*config*/)
99 125
100 IPC_MESSAGE_CONTROL2( 126 IPC_MESSAGE_CONTROL2(
101 CastHostMsg_InsertCodedAudioFrame, 127 CastHostMsg_InsertCodedAudioFrame,
102 int32 /* channel_id */, 128 int32 /* channel_id */,
103 media::cast::EncodedFrame /* audio_frame */) 129 media::cast::EncodedFrame /* audio_frame */)
104 130
105 IPC_MESSAGE_CONTROL2( 131 IPC_MESSAGE_CONTROL2(
106 CastHostMsg_InsertCodedVideoFrame, 132 CastHostMsg_InsertCodedVideoFrame,
107 int32 /* channel_id */, 133 int32 /* channel_id */,
108 media::cast::EncodedFrame /* video_frame */) 134 media::cast::EncodedFrame /* video_frame */)
109 135
110 IPC_MESSAGE_CONTROL3( 136 IPC_MESSAGE_CONTROL4(
111 CastHostMsg_SendRtcpFromRtpSender, 137 CastHostMsg_SendSenderReport,
112 int32 /* channel_id */, 138 int32 /* channel_id */,
113 media::cast::SendRtcpFromRtpSenderData /* data */, 139 uint32 /* ssrc */,
114 media::cast::RtcpDlrrReportBlock /* dlrr */) 140 base::TimeTicks /* current_time */,
141 uint32 /* current_time_as_rtp_timestamp */)
115 142
116 IPC_MESSAGE_CONTROL5( 143 IPC_MESSAGE_CONTROL5(
117 CastHostMsg_ResendPackets, 144 CastHostMsg_ResendPackets,
118 int32 /* channel_id */, 145 int32 /* channel_id */,
119 bool /* is_audio */, 146 bool /* is_audio */,
120 media::cast::MissingFramesAndPacketsMap /* missing_packets */, 147 media::cast::MissingFramesAndPacketsMap /* missing_packets */,
121 bool /* cancel_rtx_if_not_in_list */, 148 bool /* cancel_rtx_if_not_in_list */,
122 base::TimeDelta /* dedupe_window */) 149 base::TimeDelta /* dedupe_window */)
123 150
124 IPC_MESSAGE_CONTROL2( 151 IPC_MESSAGE_CONTROL2(
125 CastHostMsg_New, 152 CastHostMsg_New,
126 int32 /* channel_id */, 153 int32 /* channel_id */,
127 net::IPEndPoint /*remote_end_point*/) 154 net::IPEndPoint /*remote_end_point*/)
128 155
129 IPC_MESSAGE_CONTROL1( 156 IPC_MESSAGE_CONTROL1(
130 CastHostMsg_Delete, 157 CastHostMsg_Delete,
131 int32 /* channel_id */) 158 int32 /* channel_id */)
OLDNEW
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter_unittest.cc ('k') | chrome/renderer/media/cast_ipc_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698