summaryrefslogtreecommitdiffstats
path: root/net/base/sdch_manager.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/base/sdch_manager.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/base/sdch_manager.h')
-rw-r--r--net/base/sdch_manager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h
index 0f7cdeb..2a4e5b5 100644
--- a/net/base/sdch_manager.h
+++ b/net/base/sdch_manager.h
@@ -243,13 +243,13 @@ class SdchManager {
// by 1 the number of times it will be reported as blacklisted.
const bool IsInSupportedDomain(const GURL& url);
- // Schedule the URL fetching to load a dictionary. This will generally return
- // long before the dictionary is actually loaded and added.
+ // Schedule the URL fetching to load a dictionary. This will always return
+ // before the dictionary is actually loaded and added.
// After the implied task does completes, the dictionary will have been
// cached in memory.
- void FetchDictionary(const GURL& referring_url, const GURL& dictionary_url);
+ void FetchDictionary(const GURL& dictionary_url);
- // Security test function used before initiating a fetch.
+ // Security test function used before initiating a FetchDictionary.
// Return true if fetch is legal.
bool CanFetchDictionary(const GURL& referring_url,
const GURL& dictionary_url) const;