| OLD | NEW | 
|---|
| 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 10 matching lines...) Expand all  Loading... | 
| 21 // To ensure low latency audio, a SyncSocket pair is used to signal buffer | 21 // To ensure low latency audio, a SyncSocket pair is used to signal buffer | 
| 22 // readiness without having to route messages using the IO thread. | 22 // readiness without having to route messages using the IO thread. | 
| 23 | 23 | 
| 24 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 24 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 
| 25 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 25 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 
| 26 | 26 | 
| 27 #include <map> | 27 #include <map> | 
| 28 #include <string> | 28 #include <string> | 
| 29 | 29 | 
| 30 #include "base/compiler_specific.h" | 30 #include "base/compiler_specific.h" | 
| 31 #include "base/gtest_prod_util.h" |  | 
| 32 #include "base/memory/ref_counted.h" | 31 #include "base/memory/ref_counted.h" | 
| 33 #include "base/memory/scoped_ptr.h" | 32 #include "base/memory/scoped_ptr.h" | 
| 34 #include "base/memory/weak_ptr.h" | 33 #include "base/memory/weak_ptr.h" | 
| 35 #include "base/process/process.h" | 34 #include "base/process/process.h" | 
| 36 #include "base/sequenced_task_runner_helpers.h" | 35 #include "base/sequenced_task_runner_helpers.h" | 
| 37 #include "content/common/media/audio_messages.h" | 36 #include "content/common/media/audio_messages.h" | 
| 38 #include "content/public/browser/browser_message_filter.h" | 37 #include "content/public/browser/browser_message_filter.h" | 
| 39 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" | 
| 40 #include "media/audio/audio_input_controller.h" | 39 #include "media/audio/audio_input_controller.h" | 
| 41 #include "media/audio/audio_io.h" | 40 #include "media/audio/audio_io.h" | 
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 260   scoped_ptr<media::AudioLog> audio_log_; | 259   scoped_ptr<media::AudioLog> audio_log_; | 
| 261 | 260 | 
| 262   base::WeakPtrFactory<AudioInputRendererHost> weak_factory_; | 261   base::WeakPtrFactory<AudioInputRendererHost> weak_factory_; | 
| 263 | 262 | 
| 264   DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 263   DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 
| 265 }; | 264 }; | 
| 266 | 265 | 
| 267 }  // namespace content | 266 }  // namespace content | 
| 268 | 267 | 
| 269 #endif  // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 268 #endif  // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 
| OLD | NEW | 
|---|