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

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

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comments. Created 4 years, 9 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const media::cast::RtcpSenderInfo& sender_info, 48 const media::cast::RtcpSenderInfo& sender_info,
49 base::TimeTicks time_sent, 49 base::TimeTicks time_sent,
50 uint32_t rtp_timestamp); 50 uint32_t rtp_timestamp);
51 void OnRawEvents(int32_t channel_id, 51 void OnRawEvents(int32_t channel_id,
52 const std::vector<media::cast::PacketEvent>& packet_events, 52 const std::vector<media::cast::PacketEvent>& packet_events,
53 const std::vector<media::cast::FrameEvent>& frame_events); 53 const std::vector<media::cast::FrameEvent>& frame_events);
54 void OnRtt(int32_t channel_id, uint32_t ssrc, base::TimeDelta rtt); 54 void OnRtt(int32_t channel_id, uint32_t ssrc, base::TimeDelta rtt);
55 void OnRtcpCastMessage(int32_t channel_id, 55 void OnRtcpCastMessage(int32_t channel_id,
56 uint32_t ssrc, 56 uint32_t ssrc,
57 const media::cast::RtcpCastMessage& cast_message); 57 const media::cast::RtcpCastMessage& cast_message);
58 void OnReceivedPli(int32_t channel_id, int32_t ssrc);
58 void OnReceivedPacket(int32_t channel_id, const media::cast::Packet& packet); 59 void OnReceivedPacket(int32_t channel_id, const media::cast::Packet& packet);
59 60
60 static CastIPCDispatcher* global_instance_; 61 static CastIPCDispatcher* global_instance_;
61 62
62 // For IPC Send(); must only be accesed on |io_message_loop_|. 63 // For IPC Send(); must only be accesed on |io_message_loop_|.
63 IPC::Sender* sender_; 64 IPC::Sender* sender_;
64 65
65 // Task runner on which IPC calls are driven. 66 // Task runner on which IPC calls are driven.
66 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 67 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
67 68
68 // A map of stream ids to delegates; must only be accessed on 69 // A map of stream ids to delegates; must only be accessed on
69 // |io_message_loop_|. 70 // |io_message_loop_|.
70 IDMap<CastTransportSenderIPC> id_map_; 71 IDMap<CastTransportSenderIPC> id_map_;
71 DISALLOW_COPY_AND_ASSIGN(CastIPCDispatcher); 72 DISALLOW_COPY_AND_ASSIGN(CastIPCDispatcher);
72 }; 73 };
73 74
74 #endif // CHROME_RENDERER_MEDIA_CAST_IPC_DISPATCHER_H_ 75 #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