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

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 @tott 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..7371bda8077e25e20e74a7d286b4ae41380148e0 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -220,9 +220,11 @@ class CONTENT_EXPORT WebContentsDelegate {
virtual void WebContentsFocused(WebContents* contents) {}
// Asks the delegate if the given tab can download.
- virtual bool CanDownload(RenderViewHost* render_view_host,
+ // Invoking the |callback| synchronously is OK.
+ virtual void CanDownload(RenderViewHost* render_view_host,
int request_id,
- const std::string& request_method);
+ 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