Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: media/cast/cast_environment.cc

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/cast_environment.h ('k') | media/cast/cast_receiver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/cast/cast_environment.h ('k') | media/cast/cast_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698