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

Unified Diff: chrome/browser/android/offline_pages/offline_page_utils.h

Issue 2841823004: Use DownloadManager to download non-html res when download icon pressed (Closed)
Patch Set: Add comment Created 3 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: chrome/browser/android/offline_pages/offline_page_utils.h
diff --git a/chrome/browser/android/offline_pages/offline_page_utils.h b/chrome/browser/android/offline_pages/offline_page_utils.h
index 7a4c3b7dddf64620adcea2b767a051b241b7933c..f539f9369b54e00dd91a3ac3b010ecc440dcc744 100644
--- a/chrome/browser/android/offline_pages/offline_page_utils.h
+++ b/chrome/browser/android/offline_pages/offline_page_utils.h
@@ -109,6 +109,11 @@ class OfflinePageUtils {
const std::string& name_space,
const GURL& url,
DownloadUIActionFlags ui_action);
+
+ // Determines if offline page download should be triggered based on MIME type
+ // of download resource.
+ static bool CanDownloadAsOfflinePage(const GURL& url,
+ const std::string& contents_mime_type);
};
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698