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

Unified Diff: net/url_request/url_request_job.h

Issue 62111: Give the filter setup more context so it can figure out whether it's download... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « net/base/load_flags.h ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job.h
===================================================================
--- net/url_request/url_request_job.h (revision 13526)
+++ net/url_request/url_request_job.h (working copy)
@@ -119,6 +119,9 @@
return false;
}
+ // Find out if this is a download.
+ virtual bool IsDownload() const;
+
// Find out if this is a response to a request that advertised an SDCH
// dictionary. Only makes sense for some types of requests.
virtual bool IsSdchResponse() const { return false; }
jar (doing other things) 2009/04/10 20:27:14 One element that I think is questionable is the di
Lei Zhang 2009/04/10 21:25:21 SDCH only makes sense for http right? To me, downl
jar (doing other things) 2009/04/10 22:10:09 SDCH is currently outlawed by the spec for simplic
@@ -293,6 +296,9 @@
// NotifyDone so that it is kept in sync with the request.
bool done_;
+ // Cache the load flags from request_ because it might go away.
+ int load_flags_;
+
// The data stream filter which is enabled on demand.
scoped_ptr<Filter> filter_;
« no previous file with comments | « net/base/load_flags.h ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698