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

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

Issue 10854040: Add hooks to content to request permission to connect to the PPAPI broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 4 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 79859b4f4f9582a68c1fbb3586e4cd1ec612c9b2..8733ae882a51f8b611f8f88f45cca87e4a94bb09 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -955,6 +955,16 @@ void Browser::RequestMediaAccessPermissionHelper(
}
}
+// static
+void Browser::RequestPpapiBrokerPermissionHelper(
+ WebContents* web_contents,
+ const GURL& url,
+ const FilePath& plugin_path,
+ const base::Callback<void(bool)>& callback) {
+ // TODO(bauerb): Request permission.
ddorwin 2012/08/12 22:51:16 FYI, should automatically return false in certain
Bernhard Bauer 2012/08/13 09:02:11 Do you know what these cases are? FYI, the actual
ddorwin 2012/08/13 22:27:04 As discussed offline.
+ callback.Run(true);
+}
+
void Browser::UpdateUIForNavigationInTab(TabContents* contents,
content::PageTransition transition,
bool user_initiated) {
@@ -1683,6 +1693,15 @@ void Browser::RequestMediaAccessPermission(
RequestMediaAccessPermissionHelper(web_contents, request, callback);
}
+void Browser::RequestPpapiBrokerPermission(
+ WebContents* web_contents,
+ const GURL& url,
+ const FilePath& plugin_path,
+ const base::Callback<void(bool)>& callback) {
+ RequestPpapiBrokerPermissionHelper(web_contents, url, plugin_path,
+ callback);
+}
+
///////////////////////////////////////////////////////////////////////////////
// Browser, CoreTabHelperDelegate implementation:

Powered by Google App Engine
This is Rietveld 408576698