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

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

Issue 8912009: Move BrowserMessageFilter to public, and into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 5 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "content/browser/renderer_host/media/audio_common.h" 11 #include "content/browser/renderer_host/media/audio_common.h"
12 #include "content/browser/renderer_host/media/audio_input_device_manager.h" 12 #include "content/browser/renderer_host/media/audio_input_device_manager.h"
13 #include "content/browser/renderer_host/media/audio_input_sync_writer.h" 13 #include "content/browser/renderer_host/media/audio_input_sync_writer.h"
14 #include "content/browser/renderer_host/media/media_stream_manager.h" 14 #include "content/browser/renderer_host/media/media_stream_manager.h"
15 #include "content/browser/resource_context.h" 15 #include "content/browser/resource_context.h"
16 #include "content/common/media/audio_messages.h" 16 #include "content/common/media/audio_messages.h"
17 #include "ipc/ipc_logging.h" 17 #include "ipc/ipc_logging.h"
18 18
19 using content::BrowserMessageFilter;
19 using content::BrowserThread; 20 using content::BrowserThread;
20 21
21 AudioInputRendererHost::AudioEntry::AudioEntry() 22 AudioInputRendererHost::AudioEntry::AudioEntry()
22 : stream_id(0), 23 : stream_id(0),
23 pending_close(false) { 24 pending_close(false) {
24 } 25 }
25 26
26 AudioInputRendererHost::AudioEntry::~AudioEntry() {} 27 AudioInputRendererHost::AudioEntry::~AudioEntry() {}
27 28
28 AudioInputRendererHost::AudioInputRendererHost( 29 AudioInputRendererHost::AudioInputRendererHost(
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 445 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
445 446
446 for (SessionEntryMap::iterator it = session_entries_.begin(); 447 for (SessionEntryMap::iterator it = session_entries_.begin();
447 it != session_entries_.end(); ++it) { 448 it != session_entries_.end(); ++it) {
448 if (stream_id == it->second) { 449 if (stream_id == it->second) {
449 return it->first; 450 return it->first;
450 } 451 }
451 } 452 }
452 return 0; 453 return 0;
453 } 454 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698