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

Side by Side Diff: chromecast/media/audio/cast_audio_manager.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
« no previous file with comments | « chromecast/graphics/osd_plane_default.cc ('k') | chromecast/media/audio/cast_audio_manager.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 CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ 5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ 6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "media/audio/audio_manager_base.h" 9 #include "media/audio/audio_manager_base.h"
10 10
(...skipping 17 matching lines...) Expand all
28 bool HasAudioOutputDevices() override; 28 bool HasAudioOutputDevices() override;
29 bool HasAudioInputDevices() override; 29 bool HasAudioInputDevices() override;
30 void ShowAudioInputSettings() override; 30 void ShowAudioInputSettings() override;
31 void GetAudioInputDeviceNames( 31 void GetAudioInputDeviceNames(
32 ::media::AudioDeviceNames* device_names) override; 32 ::media::AudioDeviceNames* device_names) override;
33 ::media::AudioParameters GetInputStreamParameters( 33 ::media::AudioParameters GetInputStreamParameters(
34 const std::string& device_id) override; 34 const std::string& device_id) override;
35 35
36 // This must be called on cast media thread. 36 // This must be called on cast media thread.
37 // See chromecast::media::MediaMessageLoop. 37 // See chromecast::media::MediaMessageLoop.
38 virtual scoped_ptr<MediaPipelineBackend> CreateMediaPipelineBackend( 38 virtual std::unique_ptr<MediaPipelineBackend> CreateMediaPipelineBackend(
39 const MediaPipelineDeviceParams& params); 39 const MediaPipelineDeviceParams& params);
40 40
41 private: 41 private:
42 // AudioManagerBase implementation. 42 // AudioManagerBase implementation.
43 ::media::AudioOutputStream* MakeLinearOutputStream( 43 ::media::AudioOutputStream* MakeLinearOutputStream(
44 const ::media::AudioParameters& params) override; 44 const ::media::AudioParameters& params) override;
45 ::media::AudioOutputStream* MakeLowLatencyOutputStream( 45 ::media::AudioOutputStream* MakeLowLatencyOutputStream(
46 const ::media::AudioParameters& params, 46 const ::media::AudioParameters& params,
47 const std::string& device_id) override; 47 const std::string& device_id) override;
48 ::media::AudioInputStream* MakeLinearInputStream( 48 ::media::AudioInputStream* MakeLinearInputStream(
49 const ::media::AudioParameters& params, 49 const ::media::AudioParameters& params,
50 const std::string& device_id) override; 50 const std::string& device_id) override;
51 ::media::AudioInputStream* MakeLowLatencyInputStream( 51 ::media::AudioInputStream* MakeLowLatencyInputStream(
52 const ::media::AudioParameters& params, 52 const ::media::AudioParameters& params,
53 const std::string& device_id) override; 53 const std::string& device_id) override;
54 ::media::AudioParameters GetPreferredOutputStreamParameters( 54 ::media::AudioParameters GetPreferredOutputStreamParameters(
55 const std::string& output_device_id, 55 const std::string& output_device_id,
56 const ::media::AudioParameters& input_params) override; 56 const ::media::AudioParameters& input_params) override;
57 57
58 MediaPipelineBackendManager* const backend_manager_; 58 MediaPipelineBackendManager* const backend_manager_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(CastAudioManager); 60 DISALLOW_COPY_AND_ASSIGN(CastAudioManager);
61 }; 61 };
62 62
63 } // namespace media 63 } // namespace media
64 } // namespace chromecast 64 } // namespace chromecast
65 65
66 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ 66 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « chromecast/graphics/osd_plane_default.cc ('k') | chromecast/media/audio/cast_audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698