Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_ASH_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_ASH_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_ASH_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_ASH_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/public/common/desktop_media_id.h" | 12 #include "content/public/browser/desktop_media_id.h" |
| 13 #include "media/video/capture/video_capture_device.h" | 13 #include "media/video/capture/video_capture_device.h" |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 class Window; | 16 class Window; |
| 17 } // namespace aura | 17 } // namespace aura |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 class VideoCaptureDeviceImpl; | 21 class VideoCaptureDeviceImpl; |
| 22 | 22 |
| 23 // An implementation of VideoCaptureDevice that mirrors the desktop on Ash. | 23 // An implementation of VideoCaptureDevice that mirrors the desktop on Ash. |
| 24 class CONTENT_EXPORT DesktopCaptureDeviceAsh | 24 class CONTENT_EXPORT DesktopCaptureDeviceAsh |
|
hshi1
2013/12/04 21:15:39
If I understand it correctly, this class will be u
Sergey Ulanov
2013/12/04 21:41:07
Good point. I'll rename it in a separate CL.
| |
| 25 : public media::VideoCaptureDevice { | 25 : public media::VideoCaptureDevice { |
| 26 public: | 26 public: |
| 27 // Creates a VideoCaptureDevice for the Ash desktop. | 27 // Creates a VideoCaptureDevice for the Ash desktop. |
| 28 static media::VideoCaptureDevice* Create(const DesktopMediaID& source); | 28 static media::VideoCaptureDevice* Create(const DesktopMediaID& source); |
| 29 | 29 |
| 30 virtual ~DesktopCaptureDeviceAsh(); | 30 virtual ~DesktopCaptureDeviceAsh(); |
| 31 | 31 |
| 32 // VideoCaptureDevice implementation. | 32 // VideoCaptureDevice implementation. |
| 33 virtual void AllocateAndStart(const media::VideoCaptureParams& params, | 33 virtual void AllocateAndStart(const media::VideoCaptureParams& params, |
| 34 scoped_ptr<Client> client) OVERRIDE; | 34 scoped_ptr<Client> client) OVERRIDE; |
| 35 virtual void StopAndDeAllocate() OVERRIDE; | 35 virtual void StopAndDeAllocate() OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 DesktopCaptureDeviceAsh(const DesktopMediaID& source); | 38 DesktopCaptureDeviceAsh(const DesktopMediaID& source); |
| 39 | 39 |
| 40 const scoped_ptr<class VideoCaptureDeviceImpl> impl_; | 40 const scoped_ptr<class VideoCaptureDeviceImpl> impl_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAsh); | 42 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAsh); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 | 45 |
| 46 } // namespace content | 46 } // namespace content |
| 47 | 47 |
| 48 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_ASH_H_ | 48 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DESKTOP_CAPTURE_DEVICE_ASH_H_ |
| OLD | NEW |