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

Unified Diff: chrome/browser/media/cast_transport_host_filter.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/media/cast_transport_host_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/cast_transport_host_filter.h
diff --git a/chrome/browser/media/cast_transport_host_filter.h b/chrome/browser/media/cast_transport_host_filter.h
index b241d9e3de84484de16c7a405e6eb2af3f4e8d54..2fd8450e6a0807187142ec898ef969633b6be8b0 100644
--- a/chrome/browser/media/cast_transport_host_filter.h
+++ b/chrome/browser/media/cast_transport_host_filter.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_
#include "base/id_map.h"
+#include "base/memory/weak_ptr.h"
#include "base/time/default_tick_clock.h"
#include "chrome/common/cast_messages.h"
#include "content/public/browser/browser_message_filter.h"
@@ -24,11 +25,19 @@ class CastTransportHostFilter : public content::BrowserMessageFilter {
void NotifyStatusChange(
int32 channel_id,
media::cast::CastTransportStatus result);
- void ReceivedPacket(
+ void SendRawEvents(
int32 channel_id,
- scoped_ptr<media::cast::Packet> result);
- void RawEvents(int32 channel_id,
- const std::vector<media::cast::PacketEvent>& packet_events);
+ const std::vector<media::cast::PacketEvent>& packet_events,
+ const std::vector<media::cast::FrameEvent>& frame_events);
+ void SendRtt(int32 channel_id,
+ uint32 ssrc,
+ base::TimeDelta rtt,
+ base::TimeDelta avg_rtt,
+ base::TimeDelta min_rtt,
+ base::TimeDelta max_rtt);
+ void SendCastMessage(int32 channel_id,
+ uint32 ssrc,
+ const media::cast::RtcpCastMessage& cast_message);
// BrowserMessageFilter implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
@@ -46,10 +55,11 @@ class CastTransportHostFilter : public content::BrowserMessageFilter {
void OnInsertCodedVideoFrame(
int32 channel_id,
const media::cast::EncodedFrame& video_frame);
- void OnSendRtcpFromRtpSender(
+ void OnSendSenderReport(
int32 channel_id,
- const media::cast::SendRtcpFromRtpSenderData& data,
- const media::cast::RtcpDlrrReportBlock& dlrr);
+ uint32 ssrc,
+ base::TimeTicks current_time,
+ uint32 current_time_as_rtp_timestamp);
void OnResendPackets(
int32 channel_id,
bool is_audio,
@@ -66,6 +76,8 @@ class CastTransportHostFilter : public content::BrowserMessageFilter {
// Clock used by Cast transport.
base::DefaultTickClock clock_;
+ base::WeakPtrFactory<CastTransportHostFilter> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter);
};
« no previous file with comments | « no previous file | chrome/browser/media/cast_transport_host_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698