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

Unified Diff: content/browser/renderer_host/media/in_process_video_capture_device_launcher.h

Issue 2885653002: [Mojo Video Capture] Do not instantiate in-process VideoCaptureSystem when using service (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/in_process_video_capture_device_launcher.h
diff --git a/content/browser/renderer_host/media/in_process_video_capture_device_launcher.h b/content/browser/renderer_host/media/in_process_video_capture_device_launcher.h
index 0a58ebab1dad4280a584b22fbb13eb6d13d0fa80..92ce7eb7c62ada48c217019cd7367a44c67ec185 100644
--- a/content/browser/renderer_host/media/in_process_video_capture_device_launcher.h
+++ b/content/browser/renderer_host/media/in_process_video_capture_device_launcher.h
@@ -23,7 +23,7 @@ class InProcessVideoCaptureDeviceLauncher : public VideoCaptureDeviceLauncher {
public:
InProcessVideoCaptureDeviceLauncher(
scoped_refptr<base::SingleThreadTaskRunner> device_task_runner,
- media::VideoCaptureSystem* video_capture_system);
+ media::VideoCaptureSystem* optional_video_capture_system);
~InProcessVideoCaptureDeviceLauncher() override;
void LaunchDeviceAsync(const std::string& device_id,
@@ -72,7 +72,7 @@ class InProcessVideoCaptureDeviceLauncher : public VideoCaptureDeviceLauncher {
ReceiveDeviceCallback result_callback);
const scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
- media::VideoCaptureSystem* const video_capture_system_;
+ media::VideoCaptureSystem* const optional_video_capture_system_;
mcasas 2017/05/16 22:22:22 I think having a naked pointer here is enough to i
chfremer 2017/05/16 22:45:02 I disagree with the idea that the raw pointer woul
mcasas 2017/05/17 23:19:03 A quick search [1] yields no |optional_| members i
chfremer 2017/05/18 17:06:16 It appears that my reasoning for why I feel that a
State state_;
};

Powered by Google App Engine
This is Rietveld 408576698