summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_http_job.h
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 21:37:04 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 21:37:04 +0000
commit7234e6cc82609038c3dbb5bd175e73d7ea93fd76 (patch)
treef9ec71ceb5f9a26d33799df74db6fb0988a20d42 /net/url_request/url_request_http_job.h
parent568a0bebd0c3c296e473b2e434c679634e7c68bf (diff)
downloadchromium_src-7234e6cc82609038c3dbb5bd175e73d7ea93fd76.zip
chromium_src-7234e6cc82609038c3dbb5bd175e73d7ea93fd76.tar.gz
chromium_src-7234e6cc82609038c3dbb5bd175e73d7ea93fd76.tar.bz2
Fetch SDCH dictionary as soon as current URL fetch completes
Rather than just waiting for 15 seconds, this patch fetches the "suggested dicitionary" as soon as the current download completes. This avoids stealing bandwidth from the original download, but works as quickly as possible to get the dictionary, so that the user can receive compression results asap. r=wtc Review URL: http://codereview.chromium.org/20254 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_http_job.h')
-rw-r--r--net/url_request/url_request_http_job.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/url_request/url_request_http_job.h b/net/url_request/url_request_http_job.h
index e53db48..a77d462 100644
--- a/net/url_request/url_request_http_job.h
+++ b/net/url_request/url_request_http_job.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/scoped_ptr.h"
#include "net/base/completion_callback.h"
#include "net/http/http_request_info.h"
#include "net/url_request/url_request_job.h"
@@ -80,6 +81,9 @@ class URLRequestHttpJob : public URLRequestJob {
bool read_in_progress_;
+ // An URL for an SDCH dictionary as suggested in a Get-Dictionary HTTP header.
+ GURL sdch_dictionary_url_;
+
// Keep a reference to the url request context to be sure it's not deleted
// before us.
scoped_refptr<URLRequestContext> context_;