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

Unified Diff: chrome/browser/ui/media_stream_infobar_delegate.cc

Issue 10912004: Begin adding support for tab mirroring via the MediaStream audio/video capturing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed MEDIA_USER_*_CAPTURE to MEDIA_*_DEVICE_CAPTURE, as suggested by wjia@. Created 8 years, 3 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/ui/media_stream_infobar_delegate.cc
diff --git a/chrome/browser/ui/media_stream_infobar_delegate.cc b/chrome/browser/ui/media_stream_infobar_delegate.cc
index 8c0c4da6c331cf74ca4f2965be98cbaad6f63844..bdedf61dacd57f97a23bd3dee2c94e8986ba8b45 100644
--- a/chrome/browser/ui/media_stream_infobar_delegate.cc
+++ b/chrome/browser/ui/media_stream_infobar_delegate.cc
@@ -38,8 +38,16 @@ content::MediaStreamDevices
return controller_->GetVideoDevices();
}
-const GURL& MediaStreamInfoBarDelegate::GetSecurityOrigin() const {
- return controller_->GetSecurityOrigin();
+const std::string& MediaStreamInfoBarDelegate::GetSecurityOriginSpec() const {
+ return controller_->GetSecurityOriginSpec();
+}
+
+bool MediaStreamInfoBarDelegate::IsSafeToAlwaysAllowAudio() const {
+ return controller_->IsSafeToAlwaysAllowAudio();
+}
+
+bool MediaStreamInfoBarDelegate::IsSafeToAlwaysAllowVideo() const {
+ return controller_->IsSafeToAlwaysAllowVideo();
}
void MediaStreamInfoBarDelegate::Accept(const std::string& audio_id,

Powered by Google App Engine
This is Rietveld 408576698