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 |
(...skipping 14 matching lines...) Expand all Loading... |
25 static std::unique_ptr<media::VideoCaptureDevice> Create( | 25 static std::unique_ptr<media::VideoCaptureDevice> Create( |
26 const DesktopMediaID& source); | 26 const DesktopMediaID& source); |
27 | 27 |
28 ~DesktopCaptureDeviceAura() override; | 28 ~DesktopCaptureDeviceAura() override; |
29 | 29 |
30 // VideoCaptureDevice implementation. | 30 // VideoCaptureDevice implementation. |
31 void AllocateAndStart(const media::VideoCaptureParams& params, | 31 void AllocateAndStart(const media::VideoCaptureParams& params, |
32 std::unique_ptr<Client> client) override; | 32 std::unique_ptr<Client> client) override; |
33 void RequestRefreshFrame() override; | 33 void RequestRefreshFrame() override; |
34 void StopAndDeAllocate() override; | 34 void StopAndDeAllocate() override; |
| 35 void OnUtilizationReport(int frame_feedback_id, double utilization) override; |
35 | 36 |
36 private: | 37 private: |
37 explicit DesktopCaptureDeviceAura(const DesktopMediaID& source); | 38 explicit DesktopCaptureDeviceAura(const DesktopMediaID& source); |
38 | 39 |
39 std::unique_ptr<media::ScreenCaptureDeviceCore> core_; | 40 std::unique_ptr<media::ScreenCaptureDeviceCore> core_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura); | 42 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura); |
42 }; | 43 }; |
43 | 44 |
44 | 45 |
45 } // namespace content | 46 } // namespace content |
46 | 47 |
47 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ | 48 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ |
OLD | NEW |