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_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ |
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ | 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/public/browser/desktop_media_id.h" | 13 #include "content/public/browser/desktop_media_id.h" |
14 #include "media/capture/content/screen_capture_device_core.h" | 14 #include "media/capture/content/screen_capture_device_core.h" |
15 #include "media/capture/video/video_capture_device.h" | 15 #include "media/capture/video/video_capture_device.h" |
16 | 16 |
17 namespace aura { | |
18 class Window; | |
19 } // namespace aura | |
20 | |
21 namespace content { | 17 namespace content { |
22 | 18 |
23 // An implementation of VideoCaptureDevice that mirrors an Aura window. | 19 // An implementation of VideoCaptureDevice that mirrors an Aura window. |
24 class CONTENT_EXPORT DesktopCaptureDeviceAura | 20 class CONTENT_EXPORT DesktopCaptureDeviceAura |
25 : public media::VideoCaptureDevice { | 21 : public media::VideoCaptureDevice { |
26 public: | 22 public: |
27 // Creates a VideoCaptureDevice for the Aura desktop. If |source| does not | 23 // Creates a VideoCaptureDevice for the Aura desktop. If |source| does not |
28 // reference a registered aura window, returns nullptr instead. | 24 // reference a registered aura window, returns nullptr instead. |
29 static std::unique_ptr<media::VideoCaptureDevice> Create( | 25 static std::unique_ptr<media::VideoCaptureDevice> Create( |
30 const DesktopMediaID& source); | 26 const DesktopMediaID& source); |
(...skipping 11 matching lines...) Expand all Loading... |
42 | 38 |
43 std::unique_ptr<media::ScreenCaptureDeviceCore> core_; | 39 std::unique_ptr<media::ScreenCaptureDeviceCore> core_; |
44 | 40 |
45 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura); | 41 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura); |
46 }; | 42 }; |
47 | 43 |
48 | 44 |
49 } // namespace content | 45 } // namespace content |
50 | 46 |
51 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ | 47 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ |
OLD | NEW |