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

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

Issue 9314037: Save As for content retrieved via POST works in most circumstances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 11 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.h
diff --git a/content/public/browser/download_manager.h b/content/public/browser/download_manager.h
index a4bc3c852473a30632bfbcb79bb729573c2bbb51..29c5d663c953d2ab98b30e25acc61951b7bf68cd 100644
--- a/content/public/browser/download_manager.h
+++ b/content/public/browser/download_manager.h
@@ -168,7 +168,10 @@ class CONTENT_EXPORT DownloadManager
// Downloads the content at |url|. |referrer| and |referrer_encoding| are the
// referrer for the download, and may be empty. If |prefer_cache| is true,
// then if the response to |url| is in the HTTP cache it will be used without
- // revalidation. |save_info| specifies where the downloaded file should be
+ // revalidation. If |post_id| is non-negative, then it identifies the post
+ // transaction used to originally retrieve the |url| resource - it also
+ // requires |prefer_cache| to be |true| since re-post'ing is not done.
+ // |save_info| specifies where the downloaded file should be
// saved, and whether the user should be prompted about the download.
// |web_contents| is the web page that the download is done in context of,
// and must be non-NULL.
@@ -176,6 +179,7 @@ class CONTENT_EXPORT DownloadManager
const GURL& referrer,
const std::string& referrer_encoding,
bool prefer_cache,
+ int64 post_id,
const DownloadSaveInfo& save_info,
content::WebContents* web_contents) = 0;
« content/browser/tab_contents/tab_contents.cc ('K') | « content/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698