Remove PlatformFile from profile_browsertest
[chromium-blink-merge.git] / content / browser / media / capture / desktop_capture_device_aura.h
blob997b3ce3a00f42fe7fbb56055dbf0beacfa6bbbf
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_
8 #include <string>
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/video/capture/video_capture_device.h"
15 namespace aura {
16 class Window;
17 } // namespace aura
19 namespace content {
21 class ContentVideoCaptureDeviceCore;
23 // An implementation of VideoCaptureDevice that mirrors an Aura window.
24 class CONTENT_EXPORT DesktopCaptureDeviceAura
25 : public media::VideoCaptureDevice {
26 public:
27 // Creates a VideoCaptureDevice for the Aura desktop.
28 static media::VideoCaptureDevice* Create(const DesktopMediaID& source);
30 virtual ~DesktopCaptureDeviceAura();
32 // VideoCaptureDevice implementation.
33 virtual void AllocateAndStart(const media::VideoCaptureParams& params,
34 scoped_ptr<Client> client) OVERRIDE;
35 virtual void StopAndDeAllocate() OVERRIDE;
37 private:
38 DesktopCaptureDeviceAura(const DesktopMediaID& source);
40 const scoped_ptr<class ContentVideoCaptureDeviceCore> core_;
42 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura);
46 } // namespace content
48 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_