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

Side by Side Diff: media/audio/audio_logging.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LOGGING_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_LOGGING_H_
6 #define MEDIA_AUDIO_AUDIO_LOGGING_H_ 6 #define MEDIA_AUDIO_AUDIO_LOGGING_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace media { 12 namespace media {
13 class AudioParameters; 13 class AudioParameters;
14 14
15 // AudioLog logs state information about an active audio component. Each method 15 // AudioLog logs state information about an active audio component. Each method
16 // takes a |component_id| along with method specific information. Its methods 16 // takes a |component_id| along with method specific information. Its methods
17 // are safe to call from any thread. 17 // are safe to call from any thread.
18 class AudioLog { 18 class AudioLog {
19 public: 19 public:
20 virtual ~AudioLog() {} 20 virtual ~AudioLog() {}
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Output controllers may or may not be backed by an active stream, so we 69 // Output controllers may or may not be backed by an active stream, so we
70 // need to track both controllers and streams. 70 // need to track both controllers and streams.
71 AUDIO_OUTPUT_CONTROLLER, 71 AUDIO_OUTPUT_CONTROLLER,
72 AUDIO_OUTPUT_STREAM, 72 AUDIO_OUTPUT_STREAM,
73 AUDIO_COMPONENT_MAX 73 AUDIO_COMPONENT_MAX
74 }; 74 };
75 75
76 // Create a new AudioLog object for tracking the behavior for one or more 76 // Create a new AudioLog object for tracking the behavior for one or more
77 // instances of the given component. Each instance of an "owning" class must 77 // instances of the given component. Each instance of an "owning" class must
78 // create its own AudioLog. 78 // create its own AudioLog.
79 virtual scoped_ptr<AudioLog> CreateAudioLog(AudioComponent component) = 0; 79 virtual std::unique_ptr<AudioLog> CreateAudioLog(
80 AudioComponent component) = 0;
80 81
81 protected: 82 protected:
82 virtual ~AudioLogFactory() {} 83 virtual ~AudioLogFactory() {}
83 }; 84 };
84 85
85 } // namespace media 86 } // namespace media
86 87
87 #endif // MEDIA_AUDIO_AUDIO_LOGGING_H_ 88 #endif // MEDIA_AUDIO_AUDIO_LOGGING_H_
OLDNEW
« no previous file with comments | « media/audio/audio_input_writer.h ('k') | media/audio/audio_low_latency_input_output_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698