OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ |
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ | 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 ~WebContentsVideoCaptureDevice() override; | 36 ~WebContentsVideoCaptureDevice() override; |
37 | 37 |
38 // VideoCaptureDevice implementation. | 38 // VideoCaptureDevice implementation. |
39 void AllocateAndStart(const media::VideoCaptureParams& params, | 39 void AllocateAndStart(const media::VideoCaptureParams& params, |
40 std::unique_ptr<Client> client) override; | 40 std::unique_ptr<Client> client) override; |
41 void RequestRefreshFrame() override; | 41 void RequestRefreshFrame() override; |
42 void MaybeSuspend() override; | 42 void MaybeSuspend() override; |
43 void Resume() override; | 43 void Resume() override; |
44 void StopAndDeAllocate() override; | 44 void StopAndDeAllocate() override; |
| 45 void OnUtilizationReport(int frame_feedback_id, double utilization) override; |
45 | 46 |
46 private: | 47 private: |
47 WebContentsVideoCaptureDevice( | 48 WebContentsVideoCaptureDevice( |
48 int render_process_id, | 49 int render_process_id, |
49 int main_render_frame_id, | 50 int main_render_frame_id, |
50 bool enable_auto_throttling); | 51 bool enable_auto_throttling); |
51 | 52 |
52 const std::unique_ptr<media::ScreenCaptureDeviceCore> core_; | 53 const std::unique_ptr<media::ScreenCaptureDeviceCore> core_; |
53 | 54 |
54 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice); | 55 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice); |
55 }; | 56 }; |
56 | 57 |
57 | 58 |
58 } // namespace content | 59 } // namespace content |
59 | 60 |
60 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ | 61 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ |
OLD | NEW |