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

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

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright years Created 8 years, 9 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_renderer_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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 ->
11 // <- AudioInputMsg_NotifyStreamCreated <- DoCompleteCreation <- OnCreated <- 11 // <- AudioInputMsg_NotifyStreamCreated <- DoCompleteCreation <- OnCreated <-
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "content/public/browser/browser_thread.h" 62 #include "content/public/browser/browser_thread.h"
63 #include "media/audio/audio_input_controller.h" 63 #include "media/audio/audio_input_controller.h"
64 #include "media/audio/audio_io.h" 64 #include "media/audio/audio_io.h"
65 #include "media/audio/simple_sources.h" 65 #include "media/audio/simple_sources.h"
66 66
67 namespace content { 67 namespace content {
68 class ResourceContext; 68 class ResourceContext;
69 } 69 }
70 70
71 class AudioManager; 71 class AudioManager;
72 struct AudioParameters; 72 class AudioParameters;
73 73
74 class CONTENT_EXPORT AudioInputRendererHost 74 class CONTENT_EXPORT AudioInputRendererHost
75 : public content::BrowserMessageFilter, 75 : public content::BrowserMessageFilter,
76 public media::AudioInputController::EventHandler, 76 public media::AudioInputController::EventHandler,
77 public media_stream::AudioInputDeviceManagerEventHandler { 77 public media_stream::AudioInputDeviceManagerEventHandler {
78 public: 78 public:
79 struct AudioEntry { 79 struct AudioEntry {
80 AudioEntry(); 80 AudioEntry();
81 ~AudioEntry(); 81 ~AudioEntry();
82 82
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 AudioEntryMap audio_entries_; 209 AudioEntryMap audio_entries_;
210 210
211 // A map of session IDs to audio session sources. 211 // A map of session IDs to audio session sources.
212 typedef std::map<int, int> SessionEntryMap; 212 typedef std::map<int, int> SessionEntryMap;
213 SessionEntryMap session_entries_; 213 SessionEntryMap session_entries_;
214 214
215 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); 215 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost);
216 }; 216 };
217 217
218 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ 218 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_input_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698