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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void Resume(int32_t device_id, | 64 void Resume(int32_t device_id, |
65 int32_t session_id, | 65 int32_t session_id, |
66 const media::VideoCaptureParams& params) override; | 66 const media::VideoCaptureParams& params) override; |
67 void RequestRefreshFrame(int32_t device_id) override; | 67 void RequestRefreshFrame(int32_t device_id) override; |
68 void ReleaseBuffer(int32_t device_id, | 68 void ReleaseBuffer(int32_t device_id, |
69 int32_t buffer_id, | 69 int32_t buffer_id, |
70 double consumer_resource_utilization) override; | 70 double consumer_resource_utilization) override; |
71 void GetDeviceSupportedFormats( | 71 void GetDeviceSupportedFormats( |
72 int32_t device_id, | 72 int32_t device_id, |
73 int32_t session_id, | 73 int32_t session_id, |
74 const GetDeviceSupportedFormatsCallback& callback) override; | 74 GetDeviceSupportedFormatsCallback callback) override; |
75 void GetDeviceFormatsInUse( | 75 void GetDeviceFormatsInUse(int32_t device_id, |
76 int32_t device_id, | 76 int32_t session_id, |
77 int32_t session_id, | 77 GetDeviceFormatsInUseCallback callback) override; |
78 const GetDeviceFormatsInUseCallback& callback) override; | |
79 | 78 |
80 void DoError(VideoCaptureControllerID id); | 79 void DoError(VideoCaptureControllerID id); |
81 void DoEnded(VideoCaptureControllerID id); | 80 void DoEnded(VideoCaptureControllerID id); |
82 | 81 |
83 // Bound as callback for VideoCaptureManager::StartCaptureForClient(). | 82 // Bound as callback for VideoCaptureManager::StartCaptureForClient(). |
84 void OnControllerAdded( | 83 void OnControllerAdded( |
85 int device_id, | 84 int device_id, |
86 const base::WeakPtr<VideoCaptureController>& controller); | 85 const base::WeakPtr<VideoCaptureController>& controller); |
87 | 86 |
88 // Helper function that deletes the controller and tells VideoCaptureManager | 87 // Helper function that deletes the controller and tells VideoCaptureManager |
(...skipping 15 matching lines...) Expand all Loading... |
104 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_; | 103 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_; |
105 | 104 |
106 base::WeakPtrFactory<VideoCaptureHost> weak_factory_; | 105 base::WeakPtrFactory<VideoCaptureHost> weak_factory_; |
107 | 106 |
108 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); | 107 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); |
109 }; | 108 }; |
110 | 109 |
111 } // namespace content | 110 } // namespace content |
112 | 111 |
113 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 112 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
OLD | NEW |