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/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
10 #include "chrome/common/cast_messages.h" | 10 #include "chrome/common/cast_messages.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 void NotifyStatusChange( | 24 void NotifyStatusChange( |
25 int32 channel_id, | 25 int32 channel_id, |
26 media::cast::transport::CastTransportStatus result); | 26 media::cast::transport::CastTransportStatus result); |
27 void ReceivedPacket( | 27 void ReceivedPacket( |
28 int32 channel_id, | 28 int32 channel_id, |
29 scoped_ptr<media::cast::transport::Packet> result); | 29 scoped_ptr<media::cast::transport::Packet> result); |
30 void RawEvents(int32 channel_id, | 30 void RawEvents(int32 channel_id, |
31 const std::vector<media::cast::PacketEvent>& packet_events); | 31 const std::vector<media::cast::PacketEvent>& packet_events); |
32 | 32 |
33 // BrowserMessageFilter implementation. | 33 // BrowserMessageFilter implementation. |
34 virtual bool OnMessageReceived(const IPC::Message& message, | 34 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
35 bool* message_was_ok) OVERRIDE; | |
36 | 35 |
37 // Forwarding functions. | 36 // Forwarding functions. |
38 void OnInitializeAudio( | 37 void OnInitializeAudio( |
39 int32 channel_id, | 38 int32 channel_id, |
40 const media::cast::transport::CastTransportAudioConfig& config); | 39 const media::cast::transport::CastTransportAudioConfig& config); |
41 void OnInitializeVideo( | 40 void OnInitializeVideo( |
42 int32 channel_id, | 41 int32 channel_id, |
43 const media::cast::transport::CastTransportVideoConfig& config); | 42 const media::cast::transport::CastTransportVideoConfig& config); |
44 void OnInsertCodedAudioFrame( | 43 void OnInsertCodedAudioFrame( |
45 int32 channel_id, | 44 int32 channel_id, |
(...skipping 20 matching lines...) Expand all Loading... |
66 | 65 |
67 // Clock used by Cast transport. | 66 // Clock used by Cast transport. |
68 base::DefaultTickClock clock_; | 67 base::DefaultTickClock clock_; |
69 | 68 |
70 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); | 69 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); |
71 }; | 70 }; |
72 | 71 |
73 } // namespace cast | 72 } // namespace cast |
74 | 73 |
75 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ | 74 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ |
OLD | NEW |