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

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

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.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 6705514a7bc03dd437982049294404eedc0e92ab..128bb9a8d764e4df96d27650ef59109a25bab87f 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -223,6 +223,10 @@ class CONTENT_EXPORT WebContentsDelegate {
virtual bool CanDownload(RenderViewHost* render_view_host,
int request_id,
const std::string& request_method);
+ virtual void CanDownloadAsync(RenderViewHost* render_view_host,
asanka 2013/03/25 18:15:11 Why are you adding another callback instead of mak
lazyboy 2013/03/25 18:36:40 I was worried of slowing down !IsGuest() case (whi
asanka 2013/03/25 18:58:11 Yes. The delegate can always invoke the callback s
lazyboy 2013/03/25 20:13:05 Changed back to single CanDownload() function. Don
+ int request_id,
+ const std::string& request_method,
+ const base::Callback<void(bool)>& callback);
// Return much extra vertical space should be allotted to the
// render view widget during various animations (e.g. infobar closing).
« no previous file with comments | « content/common/browser_plugin/browser_plugin_message_enums.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698