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

Unified Diff: content/browser/media/media_devices_util.h

Issue 2646833002: Add IPC to query capabilities of video input devices. (Closed)
Patch Set: address comment from clamy Created 3 years, 11 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/media/media_devices_util.h
diff --git a/content/browser/media/media_devices_util.h b/content/browser/media/media_devices_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d8d8ac1f6702c7e869d8eb415100507b33d13c2c
--- /dev/null
+++ b/content/browser/media/media_devices_util.h
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_MEDIA_MEDIA_DEVICES_UTIL_H_
+#define CONTENT_BROWSER_MEDIA_MEDIA_DEVICES_UTIL_H_
+
+#include <string>
+
+#include "base/callback.h"
+#include "content/common/content_export.h"
+#include "content/common/media/media_devices.h"
+
+namespace content {
+
+// Returns the ID of the user-default device ID via |callback|.
+// If no such device ID can be found, |callback| receives an empty string.
+void CONTENT_EXPORT GetDefaultMediaDeviceID(
+ MediaDeviceType device_type,
+ int render_process_id,
+ int render_frame_id,
+ const base::Callback<void(const std::string&)>& callback);
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_MEDIA_MEDIA_DEVICES_UTIL_H_
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.cc ('k') | content/browser/media/media_devices_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698