From 7234e6cc82609038c3dbb5bd175e73d7ea93fd76 Mon Sep 17 00:00:00 2001 From: "jar@chromium.org" Date: Wed, 11 Feb 2009 21:37:04 +0000 Subject: 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 --- net/url_request/url_request_http_job.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/url_request/url_request_http_job.h') 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 #include +#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 context_; -- cgit v1.1