X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fbrowser%2Fmedia%2Fcapture%2Fcontent_video_capture_device_core.h;h=c86bb6c883aaea3a1e7eb7a9943366b2fb89a056;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=60d8b7be04f59301faf56f910059d728889c7ce2;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/browser/media/capture/content_video_capture_device_core.h b/src/content/browser/media/capture/content_video_capture_device_core.h index 60d8b7b..c86bb6c 100644 --- a/src/content/browser/media/capture/content_video_capture_device_core.h +++ b/src/content/browser/media/capture/content_video_capture_device_core.h @@ -119,12 +119,9 @@ class ThreadSafeCaptureOracle // UI BrowserThread. class VideoCaptureMachine { public: - VideoCaptureMachine() : started_(false) {} + VideoCaptureMachine() {} virtual ~VideoCaptureMachine() {} - // This should only be checked on the UI thread. - bool started() const { return started_; } - // Starts capturing. Returns true if succeeded. // Must be run on the UI BrowserThread. virtual bool Start(const scoped_refptr& oracle_proxy, @@ -134,9 +131,6 @@ class VideoCaptureMachine { // |callback| is invoked after the capturing has stopped. virtual void Stop(const base::Closure& callback) = 0; - protected: - bool started_; - private: DISALLOW_COPY_AND_ASSIGN(VideoCaptureMachine); }; @@ -145,7 +139,7 @@ class VideoCaptureMachine { // // Separating this from the "shell classes" WebContentsVideoCaptureDevice and // DesktopCaptureDeviceAura allows safe destruction without needing to block any -// threads (e.g., the IO BrowserThread), as well as code sharing. +// threads, as well as code sharing. // // ContentVideoCaptureDeviceCore manages a simple state machine and the pipeline // (see notes at top of this file). It times the start of successive captures @@ -173,8 +167,8 @@ class CONTENT_EXPORT ContentVideoCaptureDeviceCore void TransitionStateTo(State next_state); - // Called on the IO thread in response to StartCaptureMachine(). - // |success| is true if capture machine succeeded to start. + // Called back in response to StartCaptureMachine(). |success| is true if + // capture machine succeeded to start. void CaptureStarted(bool success); // Stops capturing and notifies client_ of an error state. @@ -193,7 +187,7 @@ class CONTENT_EXPORT ContentVideoCaptureDeviceCore // Our thread-safe capture oracle which serves as the gateway to the video // capture pipeline. Besides the VideoCaptureDevice itself, it is the only - // component of the/ system with direct access to |client_|. + // component of the system with direct access to |client_|. scoped_refptr oracle_proxy_; DISALLOW_COPY_AND_ASSIGN(ContentVideoCaptureDeviceCore);