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

Side by Side Diff: content/browser/renderer_host/media/video_capture_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/video_capture_host.h" 5 #include "content/browser/renderer_host/media/video_capture_host.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 "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "content/browser/renderer_host/media/media_stream_manager.h" 10 #include "content/browser/renderer_host/media/media_stream_manager.h"
11 #include "content/browser/renderer_host/media/video_capture_manager.h" 11 #include "content/browser/renderer_host/media/video_capture_manager.h"
12 #include "content/browser/resource_context.h" 12 #include "content/browser/resource_context.h"
13 #include "content/common/media/video_capture_messages.h" 13 #include "content/common/media/video_capture_messages.h"
14 14
15 using content::BrowserMessageFilter;
15 using content::BrowserThread; 16 using content::BrowserThread;
16 17
17 struct VideoCaptureHost::Entry { 18 struct VideoCaptureHost::Entry {
18 Entry() : state(video_capture::kStopped) {} 19 Entry() : state(video_capture::kStopped) {}
19 20
20 Entry(VideoCaptureController* controller, video_capture::State state) 21 Entry(VideoCaptureController* controller, video_capture::State state)
21 : controller(controller), 22 : controller(controller),
22 state(state) { 23 state(state) {
23 } 24 }
24 25
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 281 }
281 delete it->second; 282 delete it->second;
282 entries_.erase(id); 283 entries_.erase(id);
283 } 284 }
284 } 285 }
285 286
286 media_stream::VideoCaptureManager* VideoCaptureHost::GetVideoCaptureManager() { 287 media_stream::VideoCaptureManager* VideoCaptureHost::GetVideoCaptureManager() {
287 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 288 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
288 return resource_context_->media_stream_manager()->video_capture_manager(); 289 return resource_context_->media_stream_manager()->video_capture_manager();
289 } 290 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698