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

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

Issue 235923003: <webview>: Move download permission to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_media_to_chrome
Patch Set: Merge with ToT Created 6 years, 8 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/browser_plugin_guest_delegate.h
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h
index b9de596d7f1aead3a15a3f14a2fca22b29cee970..573658b6f23a9a469ca6e81037b7e0ee30c11e91 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -110,6 +110,11 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
const MediaStreamRequest& request,
const MediaResponseCallback& callback);
+ // Asks the delegate if the given tab can download.
+ // Invoking the |callback| synchronously is OK.
+ virtual void CanDownload(const std::string& request_method,
+ const GURL& url,
+ const base::Callback<void(bool)>& callback);
};
} // namespace content
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/public/browser/browser_plugin_guest_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698