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

Unified Diff: content/public/common/url_fetcher.h

Issue 9585009: Add URLFetcher::SaveResponseToFileAtPath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 10 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/common/url_fetcher.h
diff --git a/content/public/common/url_fetcher.h b/content/public/common/url_fetcher.h
index 571a34bc85624b09e67fca77634229174a9a999f..2bd3bef976153ca302d52ec1e55c0efafa65ba8e 100644
--- a/content/public/common/url_fetcher.h
+++ b/content/public/common/url_fetcher.h
@@ -169,6 +169,13 @@ class CONTENT_EXPORT URLFetcher {
virtual base::TimeDelta GetBackoffDelay() const = 0;
// By default, the response is saved in a string. Call this method to save the
+ // response to a file instead. Must be called before Start().
+ // |file_message_loop_proxy| will be used for all file operations.
Sam Kerner (Chrome) 2012/03/06 00:23:06 Add something like: // To save to a temporary pat
hashimoto 2012/03/06 10:16:01 Done.
+ virtual void SaveResponseToFile(
+ const FilePath& file_path,
+ scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) = 0;
+
+ // By default, the response is saved in a string. Call this method to save the
// response to a temporary file instead. Must be called before Start().
// |file_message_loop_proxy| will be used for all file operations.
virtual void SaveResponseToTemporaryFile(

Powered by Google App Engine
This is Rietveld 408576698