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

Side by Side Diff: content/browser/renderer_host/media/audio_input_device_manager.h

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch 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 // AudioInputDeviceManager manages the audio input devices. In particular it 5 // AudioInputDeviceManager manages the audio input devices. In particular it
6 // communicates with MediaStreamManager and AudioInputRendererHost on the 6 // communicates with MediaStreamManager and AudioInputRendererHost on the
7 // browser IO thread, handles queries like 7 // browser IO thread, handles queries like
8 // enumerate/open/close/GetOpenedDeviceInfoById from MediaStreamManager and 8 // enumerate/open/close/GetOpenedDeviceInfoById from MediaStreamManager and
9 // GetOpenedDeviceInfoById from AudioInputRendererHost. 9 // GetOpenedDeviceInfoById from AudioInputRendererHost.
10 // The work for enumerate/open/close is handled asynchronously on Media Stream 10 // The work for enumerate/open/close is handled asynchronously on Media Stream
(...skipping 29 matching lines...) Expand all
40 40
41 explicit AudioInputDeviceManager(media::AudioManager* audio_manager); 41 explicit AudioInputDeviceManager(media::AudioManager* audio_manager);
42 42
43 // Gets the opened device info by |session_id|. Returns NULL if the device 43 // Gets the opened device info by |session_id|. Returns NULL if the device
44 // is not opened, otherwise the opened device. Called on IO thread. 44 // is not opened, otherwise the opened device. Called on IO thread.
45 const StreamDeviceInfo* GetOpenedDeviceInfoById(int session_id); 45 const StreamDeviceInfo* GetOpenedDeviceInfoById(int session_id);
46 46
47 // MediaStreamProvider implementation, called on IO thread. 47 // MediaStreamProvider implementation, called on IO thread.
48 virtual void Register(MediaStreamProviderListener* listener, 48 virtual void Register(MediaStreamProviderListener* listener,
49 const scoped_refptr<base::SingleThreadTaskRunner>& 49 const scoped_refptr<base::SingleThreadTaskRunner>&
50 device_task_runner) OVERRIDE; 50 device_task_runner) override;
51 virtual void Unregister() OVERRIDE; 51 virtual void Unregister() override;
52 virtual void EnumerateDevices(MediaStreamType stream_type) OVERRIDE; 52 virtual void EnumerateDevices(MediaStreamType stream_type) override;
53 virtual int Open(const StreamDeviceInfo& device) OVERRIDE; 53 virtual int Open(const StreamDeviceInfo& device) override;
54 virtual void Close(int session_id) OVERRIDE; 54 virtual void Close(int session_id) override;
55 55
56 void UseFakeDevice(); 56 void UseFakeDevice();
57 bool ShouldUseFakeDevice() const; 57 bool ShouldUseFakeDevice() const;
58 58
59 #if defined(OS_CHROMEOS) 59 #if defined(OS_CHROMEOS)
60 // Registers and unregisters that a stream using keyboard mic has been opened 60 // Registers and unregisters that a stream using keyboard mic has been opened
61 // or closed. Keeps count of how many such streams are open and activates and 61 // or closed. Keeps count of how many such streams are open and activates and
62 // inactivates the keyboard mic accordingly. The (in)activation is done on the 62 // inactivates the keyboard mic accordingly. The (in)activation is done on the
63 // UI thread and for the register case a callback must therefor be provided 63 // UI thread and for the register case a callback must therefor be provided
64 // which is called when activated. 64 // which is called when activated.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // The message loop of media stream device thread that this object runs on. 119 // The message loop of media stream device thread that this object runs on.
120 scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_; 120 scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(AudioInputDeviceManager); 122 DISALLOW_COPY_AND_ASSIGN(AudioInputDeviceManager);
123 }; 123 };
124 124
125 } // namespace content 125 } // namespace content
126 126
127 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEVICE_MANAGER_H_ 127 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_DEVICE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698