OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "media/cast/cast_environment.h" | 5 #include "media/cast/cast_environment.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 | 12 |
13 using base::SingleThreadTaskRunner; | 13 using base::SingleThreadTaskRunner; |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 namespace cast { | 16 namespace cast { |
17 | 17 |
18 CastEnvironment::CastEnvironment( | 18 CastEnvironment::CastEnvironment( |
19 scoped_ptr<base::TickClock> clock, | 19 std::unique_ptr<base::TickClock> clock, |
20 scoped_refptr<SingleThreadTaskRunner> main_thread_proxy, | 20 scoped_refptr<SingleThreadTaskRunner> main_thread_proxy, |
21 scoped_refptr<SingleThreadTaskRunner> audio_thread_proxy, | 21 scoped_refptr<SingleThreadTaskRunner> audio_thread_proxy, |
22 scoped_refptr<SingleThreadTaskRunner> video_thread_proxy) | 22 scoped_refptr<SingleThreadTaskRunner> video_thread_proxy) |
23 : main_thread_proxy_(main_thread_proxy), | 23 : main_thread_proxy_(main_thread_proxy), |
24 audio_thread_proxy_(audio_thread_proxy), | 24 audio_thread_proxy_(audio_thread_proxy), |
25 video_thread_proxy_(video_thread_proxy), | 25 video_thread_proxy_(video_thread_proxy), |
26 clock_(std::move(clock)), | 26 clock_(std::move(clock)), |
27 logger_(this) {} | 27 logger_(this) {} |
28 | 28 |
29 CastEnvironment::~CastEnvironment() {} | 29 CastEnvironment::~CastEnvironment() {} |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 return video_thread_proxy_.get() && | 69 return video_thread_proxy_.get() && |
70 video_thread_proxy_->RunsTasksOnCurrentThread(); | 70 video_thread_proxy_->RunsTasksOnCurrentThread(); |
71 default: | 71 default: |
72 NOTREACHED() << "Invalid thread identifier"; | 72 NOTREACHED() << "Invalid thread identifier"; |
73 return false; | 73 return false; |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 } // namespace cast | 77 } // namespace cast |
78 } // namespace media | 78 } // namespace media |
OLD | NEW |