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 MEDIA_CAST_TEST_UTILITY_IN_PROCESS_RECEIVER_H_ | 5 #ifndef MEDIA_CAST_TEST_UTILITY_IN_PROCESS_RECEIVER_H_ |
6 #define MEDIA_CAST_TEST_UTILITY_IN_PROCESS_RECEIVER_H_ | 6 #define MEDIA_CAST_TEST_UTILITY_IN_PROCESS_RECEIVER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 } // namespace net | 26 } // namespace net |
27 | 27 |
28 namespace media { | 28 namespace media { |
29 | 29 |
30 class VideoFrame; | 30 class VideoFrame; |
31 | 31 |
32 namespace cast { | 32 namespace cast { |
33 | 33 |
34 class CastEnvironment; | 34 class CastEnvironment; |
35 class CastReceiver; | 35 class CastReceiver; |
36 class UdpTransport; | |
37 class InProcessReceiver; | 36 class InProcessReceiver; |
38 | 37 |
39 // Common base functionality for an in-process Cast receiver. This is meant to | 38 // Common base functionality for an in-process Cast receiver. This is meant to |
40 // be subclassed with the OnAudioFrame() and OnVideoFrame() methods implemented, | 39 // be subclassed with the OnAudioFrame() and OnVideoFrame() methods implemented, |
41 // so that the implementor can focus on what is to be done with the frames, | 40 // so that the implementor can focus on what is to be done with the frames, |
42 // rather than on the boilerplate "glue" code. | 41 // rather than on the boilerplate "glue" code. |
43 class InProcessReceiver { | 42 class InProcessReceiver { |
44 public: | 43 public: |
45 class TransportClient : public CastTransport::Client { | 44 class TransportClient : public CastTransport::Client { |
46 public: | 45 public: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // NOTE: Weak pointers must be invalidated before all other member variables. | 134 // NOTE: Weak pointers must be invalidated before all other member variables. |
136 base::WeakPtrFactory<InProcessReceiver> weak_factory_; | 135 base::WeakPtrFactory<InProcessReceiver> weak_factory_; |
137 | 136 |
138 DISALLOW_COPY_AND_ASSIGN(InProcessReceiver); | 137 DISALLOW_COPY_AND_ASSIGN(InProcessReceiver); |
139 }; | 138 }; |
140 | 139 |
141 } // namespace cast | 140 } // namespace cast |
142 } // namespace media | 141 } // namespace media |
143 | 142 |
144 #endif // MEDIA_CAST_TEST_UTILITY_IN_PROCESS_RECEIVER_H_ | 143 #endif // MEDIA_CAST_TEST_UTILITY_IN_PROCESS_RECEIVER_H_ |
OLD | NEW |