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

Unified Diff: media/video/capture/video_capture_device.h

Issue 17402002: Reconnect support for DirectShow video capture devices in parallel to MediaFoundation ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected silly mistake in function call Created 7 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 side-by-side diff with in-line comments
Download patch
Index: media/video/capture/video_capture_device.h
diff --git a/media/video/capture/video_capture_device.h b/media/video/capture/video_capture_device.h
index e5be4139e7056256a478a9be1169ed44229aa2dd..c1148b438017e1db5b68f863502315c58a602976 100644
--- a/media/video/capture/video_capture_device.h
+++ b/media/video/capture/video_capture_device.h
@@ -55,9 +55,24 @@ class MEDIA_EXPORT VideoCaptureDevice {
return unique_id_ < other.id();
}
+#if defined(OS_WIN)
+ enum CaptureApiType {
+ MEDIA_FOUNDATION,
+ DIRECT_SHOW
+ };
tommi (sloooow) - chröme 2013/07/03 12:06:51 nit: empty line after this one
mcasas 2013/07/03 12:41:10 Done.
+ // Capture Api type is only for Windows targets.
+ const CaptureApiType& capture_api_type() const { return capture_api_type_; }
tommi (sloooow) - chröme 2013/07/03 12:06:51 return by value
mcasas 2013/07/03 12:41:10 Done.
+ void capture_api_type(const CaptureApiType & type) {
tommi (sloooow) - chröme 2013/07/03 12:06:51 set_capture_api_type(CaptureApiType type) note th
mcasas 2013/07/03 12:41:10 Done.
+ capture_api_type_ = type;
+ }
+#endif // if defined(OS_WIN)
+
private:
std::string device_name_;
std::string unique_id_;
+#if defined(OS_WIN)
+ CaptureApiType capture_api_type_;
tommi (sloooow) - chröme 2013/07/03 12:06:51 right now this variable isn't initialized in the c
mcasas 2013/07/03 12:41:10 The second sounds better to me.
+#endif // if defined(OS_WIN)
// Allow generated copy constructor and assignment.
};

Powered by Google App Engine
This is Rietveld 408576698