1 // Copyright 2018 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 CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_CAPTURE_DEVICES_UTIL_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_CAPTURE_DEVICES_UTIL_H_ 7 8 #include <memory> 9 10 #include "base/strings/string_util.h" 11 #include "content/public/browser/desktop_media_id.h" 12 #include "content/public/browser/media_stream_request.h" 13 #include "content/public/browser/web_contents.h" 14 #include "third_party/blink/public/common/mediastream/media_stream_request.h" 15 16 // Helper to get list of media stream devices for desktop capture in |devices|. 17 // Registers to display notification if |display_notification| is true. 18 // Returns an instance of MediaStreamUI to be passed to content layer. 19 std::unique_ptr<content::MediaStreamUI> GetDevicesForDesktopCapture( 20 content::WebContents* web_contents, 21 blink::MediaStreamDevices* devices, 22 const content::DesktopMediaID& media_id, 23 blink::mojom::MediaStreamType devices_video_type, 24 blink::mojom::MediaStreamType devices_audio_type, 25 bool capture_audio, 26 bool disable_local_echo, 27 bool display_notification, 28 const base::string16& application_title, 29 const base::string16& registered_extension_name); 30 31 #endif // CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_CAPTURE_DEVICES_UTIL_H_ 32