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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10542092: Refactor the content interface for RequestMediaAccessPermission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 3c0cdd7a32e9ae04f116e22e9c8cad3def6f54db..3663575b10b5d47ce818335a050dddf143169e32 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1316,6 +1316,15 @@ void WebContentsImpl::ShowContextMenu(
render_view_host_delegate_view_->ShowContextMenu(params);
}
+void WebContentsImpl::RequestMediaAccessPermission(
+ const content::MediaStreamRequest* request,
+ const content::MediaResponseCallback& callback) {
+ if (delegate_)
+ delegate_->RequestMediaAccessPermission(this, request, callback);
+ else
+ callback.Run(content::MediaStreamDevices());
+}
+
void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {
preferred_size_ = pref_size;
if (delegate_)
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698