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

Side by Side Diff: media/audio/virtual_audio_input_stream.h

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_VIRTUAL_AUDIO_INPUT_STREAM_H_ 5 #ifndef MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_
6 #define MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ 6 #define MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 29 matching lines...) Expand all
40 // the task runner on which AudioInputCallback methods are called and may or 40 // the task runner on which AudioInputCallback methods are called and may or
41 // may not be the single thread that invokes the AudioInputStream methods. 41 // may not be the single thread that invokes the AudioInputStream methods.
42 VirtualAudioInputStream( 42 VirtualAudioInputStream(
43 const AudioParameters& params, 43 const AudioParameters& params,
44 const scoped_refptr<base::SingleThreadTaskRunner>& worker_task_runner, 44 const scoped_refptr<base::SingleThreadTaskRunner>& worker_task_runner,
45 const AfterCloseCallback& after_close_cb); 45 const AfterCloseCallback& after_close_cb);
46 46
47 virtual ~VirtualAudioInputStream(); 47 virtual ~VirtualAudioInputStream();
48 48
49 // AudioInputStream: 49 // AudioInputStream:
50 virtual bool Open() OVERRIDE; 50 virtual bool Open() override;
51 virtual void Start(AudioInputCallback* callback) OVERRIDE; 51 virtual void Start(AudioInputCallback* callback) override;
52 virtual void Stop() OVERRIDE; 52 virtual void Stop() override;
53 virtual void Close() OVERRIDE; 53 virtual void Close() override;
54 virtual double GetMaxVolume() OVERRIDE; 54 virtual double GetMaxVolume() override;
55 virtual void SetVolume(double volume) OVERRIDE; 55 virtual void SetVolume(double volume) override;
56 virtual double GetVolume() OVERRIDE; 56 virtual double GetVolume() override;
57 virtual void SetAutomaticGainControl(bool enabled) OVERRIDE; 57 virtual void SetAutomaticGainControl(bool enabled) override;
58 virtual bool GetAutomaticGainControl() OVERRIDE; 58 virtual bool GetAutomaticGainControl() override;
59 59
60 // Attaches a VirtualAudioOutputStream to be used as input. This 60 // Attaches a VirtualAudioOutputStream to be used as input. This
61 // VirtualAudioInputStream must outlive all attached streams, so any attached 61 // VirtualAudioInputStream must outlive all attached streams, so any attached
62 // stream must be closed (which causes a detach) before 62 // stream must be closed (which causes a detach) before
63 // VirtualAudioInputStream is destroyed. 63 // VirtualAudioInputStream is destroyed.
64 virtual void AddOutputStream(VirtualAudioOutputStream* stream, 64 virtual void AddOutputStream(VirtualAudioOutputStream* stream,
65 const AudioParameters& output_params); 65 const AudioParameters& output_params);
66 66
67 // Detaches a VirtualAudioOutputStream and removes it as input. 67 // Detaches a VirtualAudioOutputStream and removes it as input.
68 virtual void RemoveOutputStream(VirtualAudioOutputStream* stream, 68 virtual void RemoveOutputStream(VirtualAudioOutputStream* stream,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 FakeAudioConsumer fake_consumer_; 107 FakeAudioConsumer fake_consumer_;
108 108
109 base::ThreadChecker thread_checker_; 109 base::ThreadChecker thread_checker_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(VirtualAudioInputStream); 111 DISALLOW_COPY_AND_ASSIGN(VirtualAudioInputStream);
112 }; 112 };
113 113
114 } // namespace media 114 } // namespace media
115 115
116 #endif // MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ 116 #endif // MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_
OLDNEW
« no previous file with comments | « media/audio/test_audio_input_controller_factory.h ('k') | media/audio/virtual_audio_input_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698