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

Side by Side Diff: chrome/renderer/media/cast_ipc_dispatcher.h

Issue 532373003: [Cast] RTT clean-up to the max! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove RTT accessors in FrameSender (not needed post-refactor). Created 6 years, 3 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
« no previous file with comments | « chrome/common/cast_messages.h ('k') | chrome/renderer/media/cast_ipc_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_
6 #define CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ 6 #define CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "ipc/ipc_channel_proxy.h" 10 #include "ipc/ipc_channel_proxy.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 media::cast::CastTransportStatus status); 42 media::cast::CastTransportStatus status);
43 void OnRtpStatistics( 43 void OnRtpStatistics(
44 int32 channel_id, 44 int32 channel_id,
45 bool audio, 45 bool audio,
46 const media::cast::RtcpSenderInfo& sender_info, 46 const media::cast::RtcpSenderInfo& sender_info,
47 base::TimeTicks time_sent, 47 base::TimeTicks time_sent,
48 uint32 rtp_timestamp); 48 uint32 rtp_timestamp);
49 void OnRawEvents(int32 channel_id, 49 void OnRawEvents(int32 channel_id,
50 const std::vector<media::cast::PacketEvent>& packet_events, 50 const std::vector<media::cast::PacketEvent>& packet_events,
51 const std::vector<media::cast::FrameEvent>& frame_events); 51 const std::vector<media::cast::FrameEvent>& frame_events);
52 void OnRtt(int32 channel_id, 52 void OnRtt(int32 channel_id, uint32 ssrc, base::TimeDelta rtt);
53 uint32 ssrc,
54 const media::cast::RtcpRttReport& rtt_report);
55 void OnRtcpCastMessage(int32 channel_id, 53 void OnRtcpCastMessage(int32 channel_id,
56 uint32 ssrc, 54 uint32 ssrc,
57 const media::cast::RtcpCastMessage& cast_message); 55 const media::cast::RtcpCastMessage& cast_message);
58 56
59 static CastIPCDispatcher* global_instance_; 57 static CastIPCDispatcher* global_instance_;
60 58
61 // For IPC Send(); must only be accesed on |io_message_loop_|. 59 // For IPC Send(); must only be accesed on |io_message_loop_|.
62 IPC::Sender* sender_; 60 IPC::Sender* sender_;
63 61
64 // Message loop on which IPC calls are driven. 62 // Message loop on which IPC calls are driven.
65 const scoped_refptr<base::MessageLoopProxy> io_message_loop_; 63 const scoped_refptr<base::MessageLoopProxy> io_message_loop_;
66 64
67 // A map of stream ids to delegates; must only be accessed on 65 // A map of stream ids to delegates; must only be accessed on
68 // |io_message_loop_|. 66 // |io_message_loop_|.
69 IDMap<CastTransportSenderIPC> id_map_; 67 IDMap<CastTransportSenderIPC> id_map_;
70 DISALLOW_COPY_AND_ASSIGN(CastIPCDispatcher); 68 DISALLOW_COPY_AND_ASSIGN(CastIPCDispatcher);
71 }; 69 };
72 70
73 #endif // CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ 71 #endif // CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/common/cast_messages.h ('k') | chrome/renderer/media/cast_ipc_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698