OLD | NEW |
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_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ |
6 #define CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ | 6 #define CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ |
7 | 7 |
8 #include "base/id_map.h" | 8 #include "base/id_map.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 void SendRawEvents( | 33 void SendRawEvents( |
34 int32 channel_id, | 34 int32 channel_id, |
35 const std::vector<media::cast::PacketEvent>& packet_events, | 35 const std::vector<media::cast::PacketEvent>& packet_events, |
36 const std::vector<media::cast::FrameEvent>& frame_events); | 36 const std::vector<media::cast::FrameEvent>& frame_events); |
37 void SendRtt(int32 channel_id, uint32 ssrc, base::TimeDelta rtt); | 37 void SendRtt(int32 channel_id, uint32 ssrc, base::TimeDelta rtt); |
38 void SendCastMessage(int32 channel_id, | 38 void SendCastMessage(int32 channel_id, |
39 uint32 ssrc, | 39 uint32 ssrc, |
40 const media::cast::RtcpCastMessage& cast_message); | 40 const media::cast::RtcpCastMessage& cast_message); |
41 | 41 |
42 // BrowserMessageFilter implementation. | 42 // BrowserMessageFilter implementation. |
43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 43 virtual bool OnMessageReceived(const IPC::Message& message) override; |
44 | 44 |
45 // Forwarding functions. | 45 // Forwarding functions. |
46 void OnInitializeAudio( | 46 void OnInitializeAudio( |
47 int32 channel_id, | 47 int32 channel_id, |
48 const media::cast::CastTransportRtpConfig& config); | 48 const media::cast::CastTransportRtpConfig& config); |
49 void OnInitializeVideo( | 49 void OnInitializeVideo( |
50 int32 channel_id, | 50 int32 channel_id, |
51 const media::cast::CastTransportRtpConfig& config); | 51 const media::cast::CastTransportRtpConfig& config); |
52 void OnInsertFrame( | 52 void OnInsertFrame( |
53 int32 channel_id, | 53 int32 channel_id, |
(...skipping 25 matching lines...) Expand all Loading... |
79 scoped_ptr<content::PowerSaveBlocker> power_save_blocker_; | 79 scoped_ptr<content::PowerSaveBlocker> power_save_blocker_; |
80 | 80 |
81 base::WeakPtrFactory<CastTransportHostFilter> weak_factory_; | 81 base::WeakPtrFactory<CastTransportHostFilter> weak_factory_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); | 83 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace cast | 86 } // namespace cast |
87 | 87 |
88 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ | 88 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ |
OLD | NEW |