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

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

Issue 210303003: Cast: Remove LoggingStats in favor of event subscribers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 6 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
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_TRANSPORT_SENDER_IPC_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_
6 #define CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ 6 #define CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_
7 7
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "ipc/ipc_channel_proxy.h" 9 #include "ipc/ipc_channel_proxy.h"
10 #include "media/cast/logging/logging_defines.h" 10 #include "media/cast/logging/logging_defines.h"
11 #include "media/cast/transport/cast_transport_sender.h" 11 #include "media/cast/transport/cast_transport_sender.h"
12 12
13 // This implementation of the CastTransportSender interface 13 // This implementation of the CastTransportSender interface
14 // communicates with the browser process over IPC and relays 14 // communicates with the browser process over IPC and relays
15 // all calls to/from the transport sender to the browser process. 15 // all calls to/from the transport sender to the browser process.
16 // The primary reason for this arrangement is to give the 16 // The primary reason for this arrangement is to give the
17 // renderer less direct control over the UDP sockets. 17 // renderer less direct control over the UDP sockets.
18 class CastTransportSenderIPC 18 class CastTransportSenderIPC
19 : public media::cast::transport::CastTransportSender { 19 : public media::cast::transport::CastTransportSender {
20 public: 20 public:
21 CastTransportSenderIPC( 21 CastTransportSenderIPC(
22 const net::IPEndPoint& remote_end_point, 22 const net::IPEndPoint& remote_end_point,
23 const media::cast::transport::CastTransportStatusCallback& status_cb, 23 const media::cast::transport::CastTransportStatusCallback& status_cb,
24 const media::cast::CastLoggingConfig& logging_config,
25 const media::cast::transport::BulkRawEventsCallback& raw_events_cb); 24 const media::cast::transport::BulkRawEventsCallback& raw_events_cb);
26 25
27 virtual ~CastTransportSenderIPC(); 26 virtual ~CastTransportSenderIPC();
28 27
29 // media::cast::transport::CastTransportSender implementation. 28 // media::cast::transport::CastTransportSender implementation.
30 virtual void SetPacketReceiver( 29 virtual void SetPacketReceiver(
31 const media::cast::transport::PacketReceiverCallback& packet_callback) 30 const media::cast::transport::PacketReceiverCallback& packet_callback)
32 OVERRIDE; 31 OVERRIDE;
33 virtual void InitializeAudio( 32 virtual void InitializeAudio(
34 const media::cast::transport::CastTransportAudioConfig& config) OVERRIDE; 33 const media::cast::transport::CastTransportAudioConfig& config) OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 media::cast::transport::PacketReceiverCallback packet_callback_; 74 media::cast::transport::PacketReceiverCallback packet_callback_;
76 media::cast::transport::CastTransportStatusCallback status_callback_; 75 media::cast::transport::CastTransportStatusCallback status_callback_;
77 media::cast::transport::CastTransportRtpStatistics audio_rtp_callback_; 76 media::cast::transport::CastTransportRtpStatistics audio_rtp_callback_;
78 media::cast::transport::CastTransportRtpStatistics video_rtp_callback_; 77 media::cast::transport::CastTransportRtpStatistics video_rtp_callback_;
79 media::cast::transport::BulkRawEventsCallback raw_events_callback_; 78 media::cast::transport::BulkRawEventsCallback raw_events_callback_;
80 79
81 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderIPC); 80 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderIPC);
82 }; 81 };
83 82
84 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_ 83 #endif // CHROME_RENDERER_MEDIA_CAST_TRANSPORT_SENDER_IPC_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | chrome/renderer/media/cast_transport_sender_ipc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698