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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // AudioInputRendererHost serves audio related requests from audio capturer 5 // AudioInputRendererHost serves audio related requests from audio capturer
6 // which lives inside the render process and provide access to audio hardware. 6 // which lives inside the render process and provide access to audio hardware.
7 // 7 //
8 // OnCreateStream() request is only available in the low latency mode. It will 8 // OnCreateStream() request is only available in the low latency mode. It will
9 // creates a shared memory, a SyncWriter and a AudioInputController for the 9 // creates a shared memory, a SyncWriter and a AudioInputController for the
10 // input stream. 10 // input stream.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // Set to true after we called Close() for the controller. 101 // Set to true after we called Close() for the controller.
102 bool pending_close; 102 bool pending_close;
103 }; 103 };
104 104
105 // Called from UI thread from the owner of this object. 105 // Called from UI thread from the owner of this object.
106 explicit AudioInputRendererHost( 106 explicit AudioInputRendererHost(
107 const content::ResourceContext* resource_context); 107 const content::ResourceContext* resource_context);
108 108
109 // BrowserMessageFilter implementation. 109 // BrowserMessageFilter implementation.
110 virtual void OnChannelClosing(); 110 virtual void OnChannelClosing() OVERRIDE;
111 virtual void OnDestruct() const; 111 virtual void OnDestruct() const OVERRIDE;
112 virtual bool OnMessageReceived(const IPC::Message& message, 112 virtual bool OnMessageReceived(const IPC::Message& message,
113 bool* message_was_ok); 113 bool* message_was_ok) OVERRIDE;
114 114
115 // AudioInputController::EventHandler implementation. 115 // AudioInputController::EventHandler implementation.
116 virtual void OnCreated(media::AudioInputController* controller); 116 virtual void OnCreated(media::AudioInputController* controller) OVERRIDE;
117 virtual void OnRecording(media::AudioInputController* controller); 117 virtual void OnRecording(media::AudioInputController* controller) OVERRIDE;
118 virtual void OnError(media::AudioInputController* controller, 118 virtual void OnError(media::AudioInputController* controller,
119 int error_code); 119 int error_code) OVERRIDE;
120 virtual void OnData(media::AudioInputController* controller, 120 virtual void OnData(media::AudioInputController* controller,
121 const uint8* data, 121 const uint8* data,
122 uint32 size); 122 uint32 size) OVERRIDE;
123 123
124 // media_stream::AudioInputDeviceManagerEventHandler implementation. 124 // media_stream::AudioInputDeviceManagerEventHandler implementation.
125 virtual void OnDeviceStarted(int session_id, int index); 125 virtual void OnDeviceStarted(int session_id, int index) OVERRIDE;
126 virtual void OnDeviceStopped(int session_id); 126 virtual void OnDeviceStopped(int session_id) OVERRIDE;
127 127
128 private: 128 private:
129 // TODO(henrika): extend test suite (compare AudioRenderHost) 129 // TODO(henrika): extend test suite (compare AudioRenderHost)
130 friend class content::BrowserThread; 130 friend class content::BrowserThread;
131 friend class DeleteTask<AudioInputRendererHost>; 131 friend class DeleteTask<AudioInputRendererHost>;
132 132
133 virtual ~AudioInputRendererHost(); 133 virtual ~AudioInputRendererHost();
134 134
135 // Methods called on IO thread ---------------------------------------------- 135 // Methods called on IO thread ----------------------------------------------
136 136
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 AudioEntryMap audio_entries_; 212 AudioEntryMap audio_entries_;
213 213
214 // A map of session IDs to audio session sources. 214 // A map of session IDs to audio session sources.
215 typedef std::map<int, int> SessionEntryMap; 215 typedef std::map<int, int> SessionEntryMap;
216 SessionEntryMap session_entries_; 216 SessionEntryMap session_entries_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); 218 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost);
219 }; 219 };
220 220
221 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ 221 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698