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

Side by Side Diff: media/audio/win/audio_manager_win.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
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_WIN_AUDIO_MANAGER_WIN_H_ 5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "media/audio/audio_manager_base.h" 12 #include "media/audio/audio_manager_base.h"
12 13
13 namespace media { 14 namespace media {
14 15
15 class AudioDeviceListenerWin; 16 class AudioDeviceListenerWin;
16 17
17 // Windows implementation of the AudioManager singleton. This class is internal 18 // Windows implementation of the AudioManager singleton. This class is internal
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const AudioParameters& params, 86 const AudioParameters& params,
86 const std::string& device_id); 87 const std::string& device_id);
87 88
88 // Helper methods for performing expensive initialization tasks on the audio 89 // Helper methods for performing expensive initialization tasks on the audio
89 // thread instead of on the UI thread which AudioManager is constructed on. 90 // thread instead of on the UI thread which AudioManager is constructed on.
90 void InitializeOnAudioThread(); 91 void InitializeOnAudioThread();
91 92
92 void GetAudioDeviceNamesImpl(bool input, AudioDeviceNames* device_names); 93 void GetAudioDeviceNamesImpl(bool input, AudioDeviceNames* device_names);
93 94
94 // Listen for output device changes. 95 // Listen for output device changes.
95 scoped_ptr<AudioDeviceListenerWin> output_device_listener_; 96 std::unique_ptr<AudioDeviceListenerWin> output_device_listener_;
96 97
97 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); 98 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin);
98 }; 99 };
99 100
100 } // namespace media 101 } // namespace media
101 102
102 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 103 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « media/audio/win/audio_low_latency_output_win_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698