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

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

Issue 24514003: Make BrowserMessageFilter not derive from IPC::ChannelProxy::MessageFilter. This allows us to hide … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 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 | Annotate | Revision Log
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 // 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 // Create stream sequence (AudioInputController = AIC): 8 // Create stream sequence (AudioInputController = AIC):
9 // 9 //
10 // AudioInputHostMsg_CreateStream -> OnCreateStream -> AIC::CreateLowLatency -> 10 // AudioInputHostMsg_CreateStream -> OnCreateStream -> AIC::CreateLowLatency ->
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void OnCreated(media::AudioInputController* controller) OVERRIDE; 72 virtual void OnCreated(media::AudioInputController* controller) OVERRIDE;
73 virtual void OnRecording(media::AudioInputController* controller) OVERRIDE; 73 virtual void OnRecording(media::AudioInputController* controller) OVERRIDE;
74 virtual void OnError(media::AudioInputController* controller) OVERRIDE; 74 virtual void OnError(media::AudioInputController* controller) OVERRIDE;
75 virtual void OnData(media::AudioInputController* controller, 75 virtual void OnData(media::AudioInputController* controller,
76 const uint8* data, 76 const uint8* data,
77 uint32 size) OVERRIDE; 77 uint32 size) OVERRIDE;
78 78
79 private: 79 private:
80 // TODO(henrika): extend test suite (compare AudioRenderHost) 80 // TODO(henrika): extend test suite (compare AudioRenderHost)
81 friend class BrowserThread; 81 friend class BrowserThread;
82 friend class TestAudioInputRendererHost;
82 friend class base::DeleteHelper<AudioInputRendererHost>; 83 friend class base::DeleteHelper<AudioInputRendererHost>;
83 84
84 struct AudioEntry; 85 struct AudioEntry;
85 typedef std::map<int, AudioEntry*> AudioEntryMap; 86 typedef std::map<int, AudioEntry*> AudioEntryMap;
86 87
87 virtual ~AudioInputRendererHost(); 88 virtual ~AudioInputRendererHost();
88 89
89 // Methods called on IO thread ---------------------------------------------- 90 // Methods called on IO thread ----------------------------------------------
90 91
91 // Audio related IPC message handlers. 92 // Audio related IPC message handlers.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 159
159 // Raw pointer of the UserInputMonitor. 160 // Raw pointer of the UserInputMonitor.
160 media::UserInputMonitor* user_input_monitor_; 161 media::UserInputMonitor* user_input_monitor_;
161 162
162 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); 163 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost);
163 }; 164 };
164 165
165 } // namespace content 166 } // namespace content
166 167
167 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ 168 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698