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

Unified Diff: chrome/browser/media/media_capture_devices_dispatcher.h

Issue 12843009: Replace screen capture confirmation infobar with a message box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: chrome/browser/media/media_capture_devices_dispatcher.h
diff --git a/chrome/browser/media/media_capture_devices_dispatcher.h b/chrome/browser/media/media_capture_devices_dispatcher.h
index 4acc58df390538f1166250dadba548a45c6d8405..e1f96584d5b5f071ec96181d989f489c21bf8c21 100644
--- a/chrome/browser/media/media_capture_devices_dispatcher.h
+++ b/chrome/browser/media/media_capture_devices_dispatcher.h
@@ -10,6 +10,7 @@
#include "base/memory/singleton.h"
#include "base/observer_list.h"
#include "content/public/browser/media_observer.h"
+#include "content/public/browser/web_contents_delegate.h"
#include "content/public/common/media_stream_request.h"
class AudioStreamIndicator;
@@ -56,6 +57,11 @@ class MediaCaptureDevicesDispatcher : public content::MediaObserver {
const content::MediaStreamDevices& GetAudioCaptureDevices();
const content::MediaStreamDevices& GetVideoCaptureDevices();
+ void RequestAccess(
+ content::WebContents* web_contents,
+ const content::MediaStreamRequest& request,
+ const content::MediaResponseCallback& callback);
+
// Helper to get the default devices which can be used by the media request,
// if the return list is empty, it means there is no available device on the
// OS.

Powered by Google App Engine
This is Rietveld 408576698