Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / media / video / capture / video_capture.h
index 0a03b9f..0dd7b04 100644 (file)
@@ -53,6 +53,9 @@ class MEDIA_EXPORT VideoCapture {
   typedef base::Callback<void(const media::VideoCaptureFormats&)>
       DeviceFormatsCallback;
 
+  typedef base::Callback<void(const media::VideoCaptureFormats&)>
+      DeviceFormatsInUseCallback;
+
   VideoCapture() {}
 
   // Request video capture to start capturing with |params|.
@@ -74,6 +77,12 @@ class MEDIA_EXPORT VideoCapture {
   virtual void GetDeviceSupportedFormats(
       const DeviceFormatsCallback& callback) = 0;
 
+  // Request the device capture in-use format(s), possibly by other user(s) in
+  // other renderer(s). If there is no format in use, the vector returned in
+  // the callback will be empty.
+  virtual void GetDeviceFormatsInUse(
+      const DeviceFormatsInUseCallback& callback) = 0;
+
  protected:
   virtual ~VideoCapture() {}