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

Side by Side Diff: media/audio/audio_manager_factory.h

Issue 1911913002: Convert //media/audio 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/audio/audio_manager_base.cc ('k') | media/audio/audio_manager_unittest.cc » ('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 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_AUDIO_AUDIO_MANAGER_FACTORY_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_
7 7
8 #include <memory>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "media/base/media_export.h" 11 #include "media/base/media_export.h"
11 12
12 namespace base { 13 namespace base {
13 class SingleThreadTaskRunner; 14 class SingleThreadTaskRunner;
14 } // namespace base 15 } // namespace base
15 16
16 namespace media { 17 namespace media {
17 18
18 class AudioManager; 19 class AudioManager;
19 class AudioManagerDeleter; 20 class AudioManagerDeleter;
20 class AudioLogFactory; 21 class AudioLogFactory;
21 22
22 // Allows a platform-specific implementation of AudioManager to be provided in 23 // Allows a platform-specific implementation of AudioManager to be provided in
23 // place of the default implementation at run-time. 24 // place of the default implementation at run-time.
24 class MEDIA_EXPORT AudioManagerFactory { 25 class MEDIA_EXPORT AudioManagerFactory {
25 public: 26 public:
26 virtual ~AudioManagerFactory() {} 27 virtual ~AudioManagerFactory() {}
27 28
28 // Creates an instance of AudioManager implementation. Caller owns the 29 // Creates an instance of AudioManager implementation. Caller owns the
29 // returned instance. |audio_log_factory| must outlive the returned instance. 30 // returned instance. |audio_log_factory| must outlive the returned instance.
30 virtual scoped_ptr<AudioManager, AudioManagerDeleter> CreateInstance( 31 virtual std::unique_ptr<AudioManager, AudioManagerDeleter> CreateInstance(
31 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 32 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
32 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, 33 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
33 AudioLogFactory* audio_log_factory) = 0; 34 AudioLogFactory* audio_log_factory) = 0;
34 }; 35 };
35 36
36 } // namespace media 37 } // namespace media
37 38
38 #endif // MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ 39 #endif // MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager_base.cc ('k') | media/audio/audio_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698