| 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 OnConsumerReportingUtilization(int frame_feedback_id, |
| 46 double utilization) override; |
| 45 | 47 |
| 46 private: | 48 private: |
| 47 WebContentsVideoCaptureDevice( | 49 WebContentsVideoCaptureDevice( |
| 48 int render_process_id, | 50 int render_process_id, |
| 49 int main_render_frame_id, | 51 int main_render_frame_id, |
| 50 bool enable_auto_throttling); | 52 bool enable_auto_throttling); |
| 51 | 53 |
| 52 const std::unique_ptr<media::ScreenCaptureDeviceCore> core_; | 54 const std::unique_ptr<media::ScreenCaptureDeviceCore> core_; |
| 53 | 55 |
| 54 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice); | 56 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 | 59 |
| 58 } // namespace content | 60 } // namespace content |
| 59 | 61 |
| 60 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ | 62 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ |
| OLD | NEW |