| 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_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const media::VideoCaptureParams& params, | 57 const media::VideoCaptureParams& params, |
| 58 mojom::VideoCaptureObserverPtr observer) override; | 58 mojom::VideoCaptureObserverPtr observer) override; |
| 59 void Stop(int32_t device_id) override; | 59 void Stop(int32_t device_id) override; |
| 60 void Pause(int32_t device_id) override; | 60 void Pause(int32_t device_id) override; |
| 61 void Resume(int32_t device_id, | 61 void Resume(int32_t device_id, |
| 62 int32_t session_id, | 62 int32_t session_id, |
| 63 const media::VideoCaptureParams& params) override; | 63 const media::VideoCaptureParams& params) override; |
| 64 void RequestRefreshFrame(int32_t device_id) override; | 64 void RequestRefreshFrame(int32_t device_id) override; |
| 65 void ReleaseBuffer(int32_t device_id, | 65 void ReleaseBuffer(int32_t device_id, |
| 66 int32_t buffer_id, | 66 int32_t buffer_id, |
| 67 const gpu::SyncToken& sync_token, | |
| 68 double consumer_resource_utilization) override; | 67 double consumer_resource_utilization) override; |
| 69 void GetDeviceSupportedFormats( | 68 void GetDeviceSupportedFormats( |
| 70 int32_t device_id, | 69 int32_t device_id, |
| 71 int32_t session_id, | 70 int32_t session_id, |
| 72 const GetDeviceSupportedFormatsCallback& callback) override; | 71 const GetDeviceSupportedFormatsCallback& callback) override; |
| 73 void GetDeviceFormatsInUse( | 72 void GetDeviceFormatsInUse( |
| 74 int32_t device_id, | 73 int32_t device_id, |
| 75 int32_t session_id, | 74 int32_t session_id, |
| 76 const GetDeviceFormatsInUseCallback& callback) override; | 75 const GetDeviceFormatsInUseCallback& callback) override; |
| 77 | 76 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 102 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_; | 101 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_; |
| 103 | 102 |
| 104 base::WeakPtrFactory<VideoCaptureHost> weak_factory_; | 103 base::WeakPtrFactory<VideoCaptureHost> weak_factory_; |
| 105 | 104 |
| 106 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); | 105 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); |
| 107 }; | 106 }; |
| 108 | 107 |
| 109 } // namespace content | 108 } // namespace content |
| 110 | 109 |
| 111 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 110 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
| OLD | NEW |