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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
10 #include "base/memory/scoped_ptr.h"
11 #include "content/common/content_export.h"
12 #include "content/public/browser/desktop_media_id.h"
13 #include "media/capture/content/screen_capture_device_core.h"
14 #include "media/capture/video/video_capture_device.h"
22 // An implementation of VideoCaptureDevice that mirrors an Aura window.
23 class CONTENT_EXPORT DesktopCaptureDeviceAura
24 : public media::VideoCaptureDevice
{
26 // Creates a VideoCaptureDevice for the Aura desktop.
27 static media::VideoCaptureDevice
* Create(const DesktopMediaID
& source
);
29 ~DesktopCaptureDeviceAura() override
;
31 // VideoCaptureDevice implementation.
32 void AllocateAndStart(const media::VideoCaptureParams
& params
,
33 scoped_ptr
<Client
> client
) override
;
34 void StopAndDeAllocate() override
;
37 DesktopCaptureDeviceAura(const DesktopMediaID
& source
);
39 scoped_ptr
<media::ScreenCaptureDeviceCore
> core_
;
41 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura
);
45 } // namespace content
47 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_