Index: chrome/browser/media/cast_net_host_filter.h |
diff --git a/chrome/browser/media/cast_net_host_filter.h b/chrome/browser/media/cast_net_host_filter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d9c685ec23de72f36e8a322347490b30bbf2ab0c |
--- /dev/null |
+++ b/chrome/browser/media/cast_net_host_filter.h |
@@ -0,0 +1,71 @@ |
+// Copyright (c) 2013 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. |
mikhal1
2014/01/23 21:04:38
add new line
hubbe
2014/02/03 22:58:59
Done.
|
+#ifndef CHROME_BROWSER_MEDIA_CAST_NET_HOST_FILTER_H_ |
+#define CHROME_BROWSER_MEDIA_CAST_NET_HOST_FILTER_H_ |
+ |
+#include "base/id_map.h" |
+#include "base/time/default_tick_clock.h" |
+#include "content/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 CastNetHostFilter : public content::BrowserMessageFilter { |
+ public: |
+ CastNetHostFilter(); |
+ private: |
+ virtual ~CastNetHostFilter(); |
+ class PerSocketData { |
+ public: |
+ PerSocketData(int32 channel_id, |
+ CastNetHostFilter* filter, |
+ const media::cast::transport::CastTransportConfig& config); |
+ virtual ~PerSocketData(); |
+ |
+ void NotifyStatusChange( |
+ media::cast::transport::CastTransportStatus result); |
+ |
+ int32 channel_id_; |
+ CastNetHostFilter* filter_; |
+ scoped_ptr<media::cast::transport::CastTransportSender> sender_; |
+ }; |
+ |
+ // BrowserMessageFilter implementation |
mikhal1
2014/01/23 21:04:38
missing "." at the end of a comment. Here and belo
hubbe
2014/02/03 22:58:59
Done.
|
+ 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 cast::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<PerSocketData, IDMapOwnPointer> id_map_; |
+ |
+ // Clock used by Cast transport |
+ base::DefaultTickClock clock_; |
+}; |
+ |
+} // namespace cast |
+#endif // CHROME_BROWSER_MEDIA_CAST_NET_HOST_FILTER_H_ |