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

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: . 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 daffdc378be00d603ae285b97a9bf9b89e2e390a..acc6ca7650c588665340c3ab6a14991ecefc18ae 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1707,6 +1707,15 @@ void Browser::RequestMediaAccessPermission(
RequestMediaAccessPermissionHelper(web_contents, request, callback);
}
+void Browser::RequestPpapiBrokerPermission(
brettw 2012/08/20 05:29:47 You should be able to do this without touching Bro
Bernhard Bauer 2012/08/20 14:43:20 I was under the impression that WebContentsObserve
brettw 2012/08/20 23:36:25 No, the observes "do stuff" as well. If there were
Bernhard Bauer 2012/08/21 11:50:12 Done.
+ WebContents* web_contents,
+ const GURL& url,
+ const FilePath& plugin_path,
+ const base::Callback<void(bool)>& callback) {
+ // TODO(bauerb): Request permission.
+ callback.Run(true);
+}
+
///////////////////////////////////////////////////////////////////////////////
// Browser, CoreTabHelperDelegate implementation:

Powered by Google App Engine
This is Rietveld 408576698