| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_DEVICES_UTIL_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_MEDIA_DEVICES_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "content/common/content_export.h" |
| 12 #include "content/common/media/media_devices.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 // Returns the ID of the user-default device ID via |callback|. |
| 17 // If no such device ID can be found, |callback| receives an empty string. |
| 18 void CONTENT_EXPORT GetDefaultMediaDeviceID( |
| 19 MediaDeviceType device_type, |
| 20 int render_process_id, |
| 21 int render_frame_id, |
| 22 const base::Callback<void(const std::string&)>& callback); |
| 23 |
| 24 } // namespace content |
| 25 |
| 26 #endif // CONTENT_BROWSER_MEDIA_MEDIA_DEVICES_UTIL_H_ |
| OLD | NEW |