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

Side by Side Diff: media/base/android/media_task_runner.h

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: android 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BASE_ANDROID_MEDIA_TASK_RUNNER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_
7 7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
10 #include "media/base/media_export.h" 9 #include "media/base/media_export.h"
11 10
12 namespace media { 11 namespace media {
13 12
14 // Returns the task runner for the media thread. 13 // Returns the task runner for the media thread.
15 MEDIA_EXPORT scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner(); 14 MEDIA_EXPORT scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner();
16 15
17 // Returns true if the MediaCodecPlayer (which works on Media thread) should be 16 // Returns true if the MediaCodecPlayer (which works on Media thread) should be
18 // used. This behavior is controlled by a finch flag. 17 // used. This behavior is controlled by a finch flag.
19 MEDIA_EXPORT bool UseMediaThreadForMediaPlayback(); 18 MEDIA_EXPORT bool UseMediaThreadForMediaPlayback();
20 19
21 } // namespace media 20 } // namespace media
22 21
23 #endif // MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_ 22 #endif // MEDIA_BASE_ANDROID_MEDIA_TASK_RUNNER_H_
OLDNEW
« no previous file with comments | « media/base/android/media_source_player_unittest.cc ('k') | media/base/android/ndk_media_codec_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698