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

Side by Side Diff: media/audio/sounds/audio_stream_handler.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 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_SOUNDS_AUDIO_STREAM_HANDLER_H_ 5 #ifndef MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_
6 #define MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_ 6 #define MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 friend class AudioStreamHandlerTest; 62 friend class AudioStreamHandlerTest;
63 friend class SoundsManagerTest; 63 friend class SoundsManagerTest;
64 64
65 class AudioStreamContainer; 65 class AudioStreamContainer;
66 66
67 static void SetObserverForTesting(TestObserver* observer); 67 static void SetObserverForTesting(TestObserver* observer);
68 static void SetAudioSourceForTesting( 68 static void SetAudioSourceForTesting(
69 AudioOutputStream::AudioSourceCallback* source); 69 AudioOutputStream::AudioSourceCallback* source);
70 70
71 base::TimeDelta duration_; 71 base::TimeDelta duration_;
72 scoped_ptr<AudioStreamContainer> stream_; 72 std::unique_ptr<AudioStreamContainer> stream_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(AudioStreamHandler); 74 DISALLOW_COPY_AND_ASSIGN(AudioStreamHandler);
75 }; 75 };
76 76
77 } // namespace media 77 } // namespace media
78 78
79 #endif // MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_ 79 #endif // MEDIA_AUDIO_SOUNDS_AUDIO_STREAM_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698