| 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_STANDALONE_CAST_ENVIRONMENT_H_ | 5 #ifndef MEDIA_CAST_TEST_UTILITY_STANDALONE_CAST_ENVIRONMENT_H_ |
| 6 #define MEDIA_CAST_TEST_UTILITY_STANDALONE_CAST_ENVIRONMENT_H_ | 6 #define MEDIA_CAST_TEST_UTILITY_STANDALONE_CAST_ENVIRONMENT_H_ |
| 7 | 7 |
| 8 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
| 9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
| 10 #include "media/cast/cast_environment.h" | 10 #include "media/cast/cast_environment.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class StandaloneCastEnvironment : public CastEnvironment, | 21 class StandaloneCastEnvironment : public CastEnvironment, |
| 22 public base::ThreadChecker { | 22 public base::ThreadChecker { |
| 23 public: | 23 public: |
| 24 StandaloneCastEnvironment(); | 24 StandaloneCastEnvironment(); |
| 25 | 25 |
| 26 // Stops all threads backing the task runners, blocking the caller until | 26 // Stops all threads backing the task runners, blocking the caller until |
| 27 // complete. | 27 // complete. |
| 28 void Shutdown(); | 28 void Shutdown(); |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 virtual ~StandaloneCastEnvironment(); | 31 ~StandaloneCastEnvironment() override; |
| 32 | 32 |
| 33 base::Thread main_thread_; | 33 base::Thread main_thread_; |
| 34 base::Thread audio_thread_; | 34 base::Thread audio_thread_; |
| 35 base::Thread video_thread_; | 35 base::Thread video_thread_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(StandaloneCastEnvironment); | 37 DISALLOW_COPY_AND_ASSIGN(StandaloneCastEnvironment); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace cast | 40 } // namespace cast |
| 41 } // namespace media | 41 } // namespace media |
| 42 | 42 |
| 43 #endif // MEDIA_CAST_TEST_UTILITY_STANDALONE_CAST_ENVIRONMENT_H_ | 43 #endif // MEDIA_CAST_TEST_UTILITY_STANDALONE_CAST_ENVIRONMENT_H_ |
| OLD | NEW |