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

Side by Side Diff: content/renderer/media/video_capture_module_impl.h

Issue 8304017: enable video capture to support sharing across multiple renderer processes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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 | 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 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MODULE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MODULE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MODULE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MODULE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "media/video/capture/video_capture.h" 10 #include "media/video/capture/video_capture.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf); 63 scoped_refptr<media::VideoCapture::VideoFrameBuffer> buf);
64 64
65 // The id identifies which video capture device is used for this video 65 // The id identifies which video capture device is used for this video
66 // capture session. 66 // capture session.
67 media::VideoCaptureSessionId session_id_; 67 media::VideoCaptureSessionId session_id_;
68 base::Thread thread_; 68 base::Thread thread_;
69 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 69 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
70 // The video capture manager handles open/close of video capture devices. 70 // The video capture manager handles open/close of video capture devices.
71 scoped_refptr<VideoCaptureImplManager> vc_manager_; 71 scoped_refptr<VideoCaptureImplManager> vc_manager_;
72 media::VideoCapture::State state_; 72 media::VideoCapture::State state_;
73 bool got_first_frame_;
74 WebRtc_UWord32 width_; 73 WebRtc_UWord32 width_;
75 WebRtc_UWord32 height_; 74 WebRtc_UWord32 height_;
76 WebRtc_Word32 frame_rate_; 75 WebRtc_Word32 frame_rate_;
77 webrtc::RawVideoType video_type_; 76 webrtc::RawVideoType video_type_;
78 webrtc::VideoCaptureCapability frameInfo_; 77 webrtc::VideoCaptureCapability frameInfo_;
79 base::Time start_time_; 78 base::Time start_time_;
80 // The video capture module generating raw frame data. 79 // The video capture module generating raw frame data.
81 media::VideoCapture* capture_engine_; 80 media::VideoCapture* capture_engine_;
82 bool pending_start_; 81 bool pending_start_;
83 webrtc::VideoCaptureCapability pending_cap_; 82 webrtc::VideoCaptureCapability pending_cap_;
84 int ref_count_; 83 int ref_count_;
85 84
86 DISALLOW_COPY_AND_ASSIGN(VideoCaptureModuleImpl); 85 DISALLOW_COPY_AND_ASSIGN(VideoCaptureModuleImpl);
87 }; 86 };
88 87
89 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MODULE_IMPL_H_ 88 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MODULE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_impl_unittest.cc ('k') | content/renderer/media/video_capture_module_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698