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

Side by Side Diff: content/browser/renderer_host/media/video_capture_provider.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 23 matching lines...) Expand all
34 34
35 virtual ~VideoCaptureDeviceLauncher() {} 35 virtual ~VideoCaptureDeviceLauncher() {}
36 36
37 // The passed-in |done_cb| must guarantee that the context relevant 37 // The passed-in |done_cb| must guarantee that the context relevant
38 // during the asynchronous processing stays alive. 38 // during the asynchronous processing stays alive.
39 virtual void LaunchDeviceAsync( 39 virtual void LaunchDeviceAsync(
40 const std::string& device_id, 40 const std::string& device_id,
41 MediaStreamType stream_type, 41 MediaStreamType stream_type,
42 const media::VideoCaptureParams& params, 42 const media::VideoCaptureParams& params,
43 base::WeakPtr<media::VideoFrameReceiver> receiver, 43 base::WeakPtr<media::VideoFrameReceiver> receiver,
44 base::OnceClosure connection_lost_cb,
44 Callbacks* callbacks, 45 Callbacks* callbacks,
45 base::OnceClosure done_cb) = 0; 46 base::OnceClosure done_cb) = 0;
46 47
47 virtual void AbortLaunch() = 0; 48 virtual void AbortLaunch() = 0;
48 }; 49 };
49 50
50 class LaunchedVideoCaptureDevice 51 class LaunchedVideoCaptureDevice
51 : public media::VideoFrameConsumerFeedbackObserver { 52 : public media::VideoFrameConsumerFeedbackObserver {
52 public: 53 public:
53 // Device operation methods. 54 // Device operation methods.
(...skipping 30 matching lines...) Expand all
84 virtual void GetDeviceInfosAsync( 85 virtual void GetDeviceInfosAsync(
85 const GetDeviceInfosCallback& result_callback) = 0; 86 const GetDeviceInfosCallback& result_callback) = 0;
86 87
87 virtual std::unique_ptr<VideoCaptureDeviceLauncher> 88 virtual std::unique_ptr<VideoCaptureDeviceLauncher>
88 CreateDeviceLauncher() = 0; 89 CreateDeviceLauncher() = 0;
89 }; 90 };
90 91
91 } // namespace content 92 } // namespace content
92 93
93 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_ 94 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_BUILDABLE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698