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

Side by Side Diff: content/browser/renderer_host/media/video_capture_controller.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_CONTROLLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void OnLog(const std::string& message) override; 113 void OnLog(const std::string& message) override;
114 void OnStarted() override; 114 void OnStarted() override;
115 void OnStartedUsingGpuDecode() override; 115 void OnStartedUsingGpuDecode() override;
116 116
117 // Implementation of VideoCaptureDeviceLauncher::Callbacks interface: 117 // Implementation of VideoCaptureDeviceLauncher::Callbacks interface:
118 void OnDeviceLaunched( 118 void OnDeviceLaunched(
119 std::unique_ptr<LaunchedVideoCaptureDevice> device) override; 119 std::unique_ptr<LaunchedVideoCaptureDevice> device) override;
120 void OnDeviceLaunchFailed() override; 120 void OnDeviceLaunchFailed() override;
121 void OnDeviceLaunchAborted() override; 121 void OnDeviceLaunchAborted() override;
122 122
123 void OnDeviceConnectionLost();
124
123 void CreateAndStartDeviceAsync(const media::VideoCaptureParams& params, 125 void CreateAndStartDeviceAsync(const media::VideoCaptureParams& params,
124 VideoCaptureDeviceLaunchObserver* callbacks, 126 VideoCaptureDeviceLaunchObserver* callbacks,
125 base::OnceClosure done_cb); 127 base::OnceClosure done_cb);
126 void ReleaseDeviceAsync(base::OnceClosure done_cb); 128 void ReleaseDeviceAsync(base::OnceClosure done_cb);
127 bool IsDeviceAlive() const; 129 bool IsDeviceAlive() const;
128 void GetPhotoCapabilities( 130 void GetPhotoCapabilities(
129 media::VideoCaptureDevice::GetPhotoCapabilitiesCallback callback) const; 131 media::VideoCaptureDevice::GetPhotoCapabilitiesCallback callback) const;
130 void SetPhotoOptions( 132 void SetPhotoOptions(
131 media::mojom::PhotoSettingsPtr settings, 133 media::mojom::PhotoSettingsPtr settings,
132 media::VideoCaptureDevice::SetPhotoOptionsCallback callback); 134 media::VideoCaptureDevice::SetPhotoOptionsCallback callback);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 base::Optional<media::VideoCaptureFormat> video_capture_format_; 245 base::Optional<media::VideoCaptureFormat> video_capture_format_;
244 246
245 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; 247 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_;
246 248
247 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); 249 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController);
248 }; 250 };
249 251
250 } // namespace content 252 } // namespace content
251 253
252 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ 254 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698