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

Side by Side Diff: media/audio/audio_manager.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: Fix cast + windows build 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // If the hardware has only an input device (e.g. a webcam), the return value 248 // If the hardware has only an input device (e.g. a webcam), the return value
249 // will be empty (which the caller can then interpret to be the default output 249 // will be empty (which the caller can then interpret to be the default output
250 // device). Implementations that don't yet support this feature, must return 250 // device). Implementations that don't yet support this feature, must return
251 // an empty string. Must be called on the audio worker thread (see 251 // an empty string. Must be called on the audio worker thread (see
252 // GetWorkerTaskRunner()). 252 // GetWorkerTaskRunner()).
253 virtual std::string GetAssociatedOutputDeviceID( 253 virtual std::string GetAssociatedOutputDeviceID(
254 const std::string& input_device_id) = 0; 254 const std::string& input_device_id) = 0;
255 255
256 // Create a new AudioLog object for tracking the behavior for one or more 256 // Create a new AudioLog object for tracking the behavior for one or more
257 // instances of the given component. See AudioLogFactory for more details. 257 // instances of the given component. See AudioLogFactory for more details.
258 virtual scoped_ptr<AudioLog> CreateAudioLog( 258 virtual std::unique_ptr<AudioLog> CreateAudioLog(
danakj 2016/04/22 22:47:36 include memory
dcheng 2016/04/22 23:13:19 Already included by some kind soul
259 AudioLogFactory::AudioComponent component) = 0; 259 AudioLogFactory::AudioComponent component) = 0;
260 260
261 protected: 261 protected:
262 AudioManager(scoped_refptr<base::SingleThreadTaskRunner> task_runner, 262 AudioManager(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
263 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner); 263 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner);
264 virtual ~AudioManager(); 264 virtual ~AudioManager();
265 265
266 private: 266 private:
267 friend class base::DeleteHelper<AudioManager>; 267 friend class base::DeleteHelper<AudioManager>;
268 268
269 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 269 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
270 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_; 270 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_;
271 DISALLOW_COPY_AND_ASSIGN(AudioManager); 271 DISALLOW_COPY_AND_ASSIGN(AudioManager);
272 }; 272 };
273 273
274 } // namespace media 274 } // namespace media
275 275
276 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ 276 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698