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

Unified Diff: content/browser/renderer_host/media/media_stream_ui_proxy.h

Issue 795703003: Don't auto allow access to media devices unless a the security origin of the requester is the same … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit. Created 5 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/renderer_host/media/media_stream_ui_proxy.h
diff --git a/content/browser/renderer_host/media/media_stream_ui_proxy.h b/content/browser/renderer_host/media/media_stream_ui_proxy.h
index 23fc592e62b234836593036b5178af0c1130b3cb..117f7c4a6661d7b774229d9951ea3379a5b4ba46 100644
--- a/content/browser/renderer_host/media/media_stream_ui_proxy.h
+++ b/content/browser/renderer_host/media/media_stream_ui_proxy.h
@@ -38,7 +38,7 @@ class CONTENT_EXPORT MediaStreamUIProxy {
// WebContentsDelegate::RequestMediaAccessPermission(). The specified
// |response_callback| is called when the WebContentsDelegate approves or
// denies request.
- virtual void RequestAccess(const MediaStreamRequest& request,
+ virtual void RequestAccess(scoped_ptr<MediaStreamRequest> request,
const ResponseCallback& response_callback);
// Checks if we have permission to access the microphone or camera. Note that
@@ -97,7 +97,7 @@ class CONTENT_EXPORT FakeMediaStreamUIProxy : public MediaStreamUIProxy {
void SetCameraAccess(bool access);
// MediaStreamUIProxy overrides.
- void RequestAccess(const MediaStreamRequest& request,
+ void RequestAccess(scoped_ptr<MediaStreamRequest> request,
const ResponseCallback& response_callback) override;
void CheckAccess(const GURL& security_origin,
MediaStreamType type,

Powered by Google App Engine
This is Rietveld 408576698