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

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

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: Simplify: Use only one AudioInputDeviceManager and VideoCaptureManager, like before. 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.h
diff --git a/chrome/browser/ui/media_stream_infobar_delegate.h b/chrome/browser/ui/media_stream_infobar_delegate.h
index 8e66367a7a2a651ce7d3c662fd8e12e04aa48125..2debe5a98b22266b774db7011856f7cd6c10bca2 100644
--- a/chrome/browser/ui/media_stream_infobar_delegate.h
+++ b/chrome/browser/ui/media_stream_infobar_delegate.h
@@ -39,7 +39,7 @@ class MediaStreamInfoBarDelegate : public InfoBarDelegate {
// Returns the security origin (e.g. "www.html5rocks.com") at the origin
// of this request.
- const GURL& GetSecurityOrigin() const;
+ const std::string& GetSecurityOriginSpec() const;
tommi (sloooow) - chröme 2012/09/10 09:17:25 Why this change? Seems to me that a full GURL is
miu 2012/09/10 21:24:38 xians@ addressed this (in response to a comment in
void set_selected_audio_device(const std::string& device_id) {
selected_audio_device_ = device_id;
@@ -57,6 +57,11 @@ class MediaStreamInfoBarDelegate : public InfoBarDelegate {
}
bool always_allow() const { return always_allow_; }
+ // These determine whether all audio (or video) devices can be auto-accepted
+ // in the future should the user accept them this time.
+ bool IsSafeToAlwaysAllowAudio() const;
+ bool IsSafeToAlwaysAllowVideo() const;
+
// Callbacks to handle accepting devices or denying the request.
void Accept();
void Deny();

Powered by Google App Engine
This is Rietveld 408576698