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

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

Issue 8392042: Split BrowserThread into public API and private implementation, step 1. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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 #include "content/browser/renderer_host/media/audio_input_device_manager.h" 5 #include "content/browser/renderer_host/media/audio_input_device_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/browser_thread.h"
10 #include "content/browser/renderer_host/media/audio_input_device_manager_event_h andler.h" 9 #include "content/browser/renderer_host/media/audio_input_device_manager_event_h andler.h"
10 #include "content/public/browser/browser_thread.h"
11 #include "media/audio/audio_manager.h" 11 #include "media/audio/audio_manager.h"
12 12
13 namespace media_stream { 13 namespace media_stream {
14 14
15 const int AudioInputDeviceManager::kFakeOpenSessionId = 1; 15 const int AudioInputDeviceManager::kFakeOpenSessionId = 1;
16 const int AudioInputDeviceManager::kInvalidSessionId = 0; 16 const int AudioInputDeviceManager::kInvalidSessionId = 0;
17 const int AudioInputDeviceManager::kInvalidDevice = -1; 17 const int AudioInputDeviceManager::kInvalidDevice = -1;
18 const int AudioInputDeviceManager::kDefaultDeviceIndex = 0; 18 const int AudioInputDeviceManager::kDefaultDeviceIndex = 0;
19 19
20 // Starting id for the first capture session. 20 // Starting id for the first capture session.
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 bool AudioInputDeviceManager::HasEventHandler(int session_id) { 314 bool AudioInputDeviceManager::HasEventHandler(int session_id) {
315 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 315 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
316 return event_handlers_.find(session_id) != event_handlers_.end(); 316 return event_handlers_.find(session_id) != event_handlers_.end();
317 } 317 }
318 318
319 MessageLoop* AudioInputDeviceManager::message_loop() { 319 MessageLoop* AudioInputDeviceManager::message_loop() {
320 return audio_input_device_thread_.message_loop(); 320 return audio_input_device_thread_.message_loop();
321 } 321 }
322 322
323 } // namespace media_stream 323 } // namespace media_stream
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698