X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fbrowser%2Fmedia%2Fcapture%2Fdesktop_capture_device.h;h=9fb8ca419fa7d82759e107864cfae6783cba20ce;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=545b825feadfc9d682c683bace70499b499e014f;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/browser/media/capture/desktop_capture_device.h b/src/content/browser/media/capture/desktop_capture_device.h index 545b825f..9fb8ca4 100644 --- a/src/content/browser/media/capture/desktop_capture_device.h +++ b/src/content/browser/media/capture/desktop_capture_device.h @@ -8,11 +8,13 @@ #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "content/common/content_export.h" +#include "content/public/browser/desktop_media_id.h" #include "media/video/capture/video_capture_device.h" #include "ui/gfx/native_widget_types.h" namespace base { class SequencedTaskRunner; +class Thread; } // namespace base namespace webrtc { @@ -21,8 +23,6 @@ class DesktopCapturer; namespace content { -struct DesktopMediaID; - // DesktopCaptureDevice implements VideoCaptureDevice for screens and windows. // It's essentially an adapter between webrtc::DesktopCapturer and // VideoCaptureDevice. @@ -34,8 +34,6 @@ class CONTENT_EXPORT DesktopCaptureDevice : public media::VideoCaptureDevice { static scoped_ptr Create( const DesktopMediaID& source); - DesktopCaptureDevice(scoped_refptr task_runner, - scoped_ptr desktop_capturer); virtual ~DesktopCaptureDevice(); // VideoCaptureDevice interface. @@ -47,7 +45,15 @@ class CONTENT_EXPORT DesktopCaptureDevice : public media::VideoCaptureDevice { void SetNotificationWindowId(gfx::NativeViewId window_id); private: + friend class DesktopCaptureDeviceTest; class Core; + + // Either |task_runner| or |thread| should be non-NULL, but not both. + DesktopCaptureDevice(scoped_refptr task_runner, + scoped_ptr thread, + scoped_ptr desktop_capturer, + DesktopMediaID::Type type); + scoped_refptr core_; DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDevice);