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

Unified Diff: chrome/browser/media/cast_transport_host_filter.h

Issue 138753004: Cast: IPC glue between cast library transport and encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor cleanup Created 6 years, 10 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 | « chrome/browser/media/DEPS ('k') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..a839c03fe238d3d0b7a137384fdf024ee5bfc42f
--- /dev/null
+++ b/chrome/browser/media/cast_transport_host_filter.h
@@ -0,0 +1,73 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_
+#define CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_
+
+#include "base/id_map.h"
+#include "base/time/default_tick_clock.h"
+#include "chrome/common/cast_messages.h"
+#include "content/public/browser/browser_message_filter.h"
+#include "media/cast/cast_sender.h"
+#include "media/cast/transport/cast_transport_sender.h"
+
+namespace cast {
+
+class CastTransportHostFilter : public content::BrowserMessageFilter {
+ public:
+ CastTransportHostFilter();
+ private:
+ virtual ~CastTransportHostFilter();
+
+ void NotifyStatusChange(
+ int32 channel_id,
+ media::cast::transport::CastTransportStatus result);
+ void ReceivedPacket(
+ int32 channel_id,
+ scoped_ptr<media::cast::transport::Packet> result);
+ void ReceivedRtpStatistics(
+ int32 channel_id,
+ bool audio,
+ const media::cast::transport::RtcpSenderInfo& sender_info,
+ base::TimeTicks time_sent,
+ uint32 rtp_timestamp);
+
+ // BrowserMessageFilter implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok) OVERRIDE;
+
+ // Forwarding functions.
+ void OnInsertCodedAudioFrame(
+ int32 channel_id,
+ const media::cast::transport::EncodedAudioFrame& audio_frame,
+ base::TimeTicks recorded_time);
+ void OnInsertCodedVideoFrame(
+ int32 channel_id,
+ const media::cast::transport::EncodedVideoFrame& video_frame,
+ base::TimeTicks capture_time);
+ void OnSendRtcpFromRtpSender(
+ int32 channel_id,
+ const media::cast::transport::SendRtcpFromRtpSenderData& data,
+ const media::cast::transport::RtcpSenderInfo& sender_info,
+ const media::cast::transport::RtcpDlrrReportBlock& dlrr,
+ const media::cast::transport::RtcpSenderLogMessage& sender_log);
+ void OnResendPackets(
+ int32 channel_id,
+ bool is_audio,
+ const media::cast::MissingFramesAndPacketsMap& missing_packets);
+ void OnNew(
+ int32 channel_id,
+ const media::cast::transport::CastTransportConfig& config);
+ void OnDelete(int32 channel_id);
+
+ IDMap<media::cast::transport::CastTransportSender, IDMapOwnPointer> id_map_;
+
+ // Clock used by Cast transport.
+ base::DefaultTickClock clock_;
+ DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter);
+};
+
+} // namespace cast
+
+#endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_
« no previous file with comments | « chrome/browser/media/DEPS ('k') | chrome/browser/media/cast_transport_host_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698