Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Side by Side Diff: content/browser/renderer_host/media/video_capture_manager.h

Issue 2902203002: [Mojo Video Capture] Hook up connection lost events (Closed)
Patch Set: Fix duplicate member introduced during merging Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 using EnumerationCallback = 176 using EnumerationCallback =
177 base::Callback<void(const media::VideoCaptureDeviceDescriptors&)>; 177 base::Callback<void(const media::VideoCaptureDeviceDescriptors&)>;
178 // Asynchronously obtains descriptors for the available devices. 178 // Asynchronously obtains descriptors for the available devices.
179 // As a side-effect, updates |devices_info_cache_|. 179 // As a side-effect, updates |devices_info_cache_|.
180 void EnumerateDevices(const EnumerationCallback& client_callback); 180 void EnumerateDevices(const EnumerationCallback& client_callback);
181 181
182 // VideoCaptureDeviceLaunchObserver implementation: 182 // VideoCaptureDeviceLaunchObserver implementation:
183 void OnDeviceLaunched(VideoCaptureController* controller) override; 183 void OnDeviceLaunched(VideoCaptureController* controller) override;
184 void OnDeviceLaunchFailed(VideoCaptureController* controller) override; 184 void OnDeviceLaunchFailed(VideoCaptureController* controller) override;
185 void OnDeviceLaunchAborted() override; 185 void OnDeviceLaunchAborted() override;
186 void OnDeviceConnectionLost(VideoCaptureController* controller) override;
186 187
187 // Retrieves camera calibration information for a particular device. Returns 188 // Retrieves camera calibration information for a particular device. Returns
188 // nullopt_t if the |device_id| is not found or camera calibration information 189 // nullopt_t if the |device_id| is not found or camera calibration information
189 // is not available for the device. Camera calibration is cached during 190 // is not available for the device. Camera calibration is cached during
190 // device(s) enumeration. 191 // device(s) enumeration.
191 base::Optional<CameraCalibration> GetCameraCalibration( 192 base::Optional<CameraCalibration> GetCameraCalibration(
192 const std::string& device_id); 193 const std::string& device_id);
193 194
194 private: 195 private:
195 class CaptureDeviceStartRequest; 196 class CaptureDeviceStartRequest;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // Map used by DesktopCapture. 297 // Map used by DesktopCapture.
297 std::map<media::VideoCaptureSessionId, gfx::NativeViewId> 298 std::map<media::VideoCaptureSessionId, gfx::NativeViewId>
298 notification_window_ids_; 299 notification_window_ids_;
299 300
300 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager); 301 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager);
301 }; 302 };
302 303
303 } // namespace content 304 } // namespace content
304 305
305 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ 306 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698