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

Unified Diff: content/public/browser/web_contents_delegate.cc

Issue 13037003: permissionrequest API for guest Download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 7 years, 9 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: content/public/browser/web_contents_delegate.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index 7a4409d1e15d8db5a95b0912da3523f3ed38cfbb..a1dd09705477e89ffe4a4d98da967a574b8a7190 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -75,6 +75,14 @@ bool WebContentsDelegate::CanDownload(RenderViewHost* render_view_host,
return true;
}
+void WebContentsDelegate::CanDownloadAsync(
+ RenderViewHost* render_view_host,
+ int request_id,
+ const std::string& request_method,
+ const base::Callback<void(bool)>& callback) {
+ callback.Run(true);
+}
+
bool WebContentsDelegate::HandleContextMenu(
const content::ContextMenuParams& params) {
return false;

Powered by Google App Engine
This is Rietveld 408576698