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

Side by Side Diff: chromecast/browser/media/cast_renderer.h

Issue 1875623002: Convert //chromecast 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chromecast/browser/media/media_pipeline_backend_factory.h" 5 #include "chromecast/browser/media/media_pipeline_backend_factory.h"
6 #include "media/base/renderer.h" 6 #include "media/base/renderer.h"
7 7
8 namespace base { 8 namespace base {
9 class SingleThreadTaskRunner; 9 class SingleThreadTaskRunner;
10 } // namespace base 10 } // namespace base
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool HasAudio() final; 44 bool HasAudio() final;
45 bool HasVideo() final; 45 bool HasVideo() final;
46 46
47 private: 47 private:
48 enum Stream { STREAM_AUDIO, STREAM_VIDEO }; 48 enum Stream { STREAM_AUDIO, STREAM_VIDEO };
49 void OnEos(Stream stream); 49 void OnEos(Stream stream);
50 50
51 const CreateMediaPipelineBackendCB create_backend_cb_; 51 const CreateMediaPipelineBackendCB create_backend_cb_;
52 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 52 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
53 scoped_refptr<BalancedMediaTaskRunnerFactory> media_task_runner_factory_; 53 scoped_refptr<BalancedMediaTaskRunnerFactory> media_task_runner_factory_;
54 scoped_ptr<TaskRunnerImpl> backend_task_runner_; 54 std::unique_ptr<TaskRunnerImpl> backend_task_runner_;
55 scoped_ptr<MediaPipelineImpl> pipeline_; 55 std::unique_ptr<MediaPipelineImpl> pipeline_;
56 bool eos_[2]; 56 bool eos_[2];
57 base::Closure ended_cb_; 57 base::Closure ended_cb_;
58 DISALLOW_COPY_AND_ASSIGN(CastRenderer); 58 DISALLOW_COPY_AND_ASSIGN(CastRenderer);
59 }; 59 };
60 60
61 } // namespace media 61 } // namespace media
62 } // namespace chromecast 62 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/media/cast_mojo_media_client.cc ('k') | chromecast/browser/media/cast_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698