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

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

Issue 11618049: Cleanup: Remove unneeded browser_thread.h includes in contents. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build Created 7 years, 11 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
OLDNEW
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 // VideoCaptureManager is used to open/close, start/stop, enumerate available 5 // VideoCaptureManager is used to open/close, start/stop, enumerate available
6 // video capture devices, and manage VideoCaptureController's. 6 // video capture devices, and manage VideoCaptureController's.
7 // All functions are expected to be called from Browser::IO thread. 7 // All functions are expected to be called from Browser::IO thread.
8 // VideoCaptureManager will open OS dependent instances of VideoCaptureDevice. 8 // VideoCaptureManager will open OS dependent instances of VideoCaptureDevice.
9 // A device can only be opened once. 9 // A device can only be opened once.
10 10
11 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ 11 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_
12 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ 12 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_
13 13
14 #include <list> 14 #include <list>
15 #include <map> 15 #include <map>
16 16
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "content/browser/renderer_host/media/media_stream_provider.h" 18 #include "content/browser/renderer_host/media/media_stream_provider.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/common/media/media_stream_options.h" 20 #include "content/common/media/media_stream_options.h"
21 #include "content/public/browser/browser_thread.h"
22 #include "media/video/capture/video_capture_device.h" 21 #include "media/video/capture/video_capture_device.h"
23 #include "media/video/capture/video_capture_types.h" 22 #include "media/video/capture/video_capture_types.h"
24 23
25 namespace content { 24 namespace content {
26 class MockVideoCaptureManager; 25 class MockVideoCaptureManager;
27 class VideoCaptureController; 26 class VideoCaptureController;
28 class VideoCaptureControllerEventHandler; 27 class VideoCaptureControllerEventHandler;
29 28
30 // VideoCaptureManager opens/closes and start/stops video capture devices. 29 // VideoCaptureManager opens/closes and start/stops video capture devices.
31 class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider { 30 class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // VideoCaptureDevice is one-to-one mapped to VideoCaptureController. 153 // VideoCaptureDevice is one-to-one mapped to VideoCaptureController.
155 typedef std::map<media::VideoCaptureDevice*, Controller*> Controllers; 154 typedef std::map<media::VideoCaptureDevice*, Controller*> Controllers;
156 Controllers controllers_; 155 Controllers controllers_;
157 156
158 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager); 157 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager);
159 }; 158 };
160 159
161 } // namespace content 160 } // namespace content
162 161
163 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ 162 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698