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

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

Issue 9651020: Pass content-type resources to web intents. Goes through download, then invokes the p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move dispatch logic client-side. Created 8 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/download_manager_delegate.h
diff --git a/content/public/browser/download_manager_delegate.h b/content/public/browser/download_manager_delegate.h
index 8328f72c1dc8b00fcc9d405e7a17fcfcb8e16a4d..4516fcbe5ec95ec650c1cda3f95dc1ddfd495d59 100644
--- a/content/public/browser/download_manager_delegate.h
+++ b/content/public/browser/download_manager_delegate.h
@@ -66,6 +66,10 @@ class CONTENT_EXPORT DownloadManagerDelegate {
// download to complete.
virtual bool ShouldCompleteDownload(DownloadItem* item);
+ // Allows the delegate to indicate that the downloaded resource should be
+ // dispatched as a web intent.
+ virtual bool ShouldOpenWithWebIntent(DownloadItem* item);
+
// Allows the delegate to override opening the download. If this function
// returns false, the delegate needs to call
// DownloadItem::DelayedDownloadOpened when it's done with the item,

Powered by Google App Engine
This is Rietveld 408576698