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

Issue 20254: Fetch SDCH dictionary as soon as current URL fetch completes... (Closed)

Created:
11 years, 10 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
Reviewers:
Lincoln, wtc
CC:
chromium-reviews_googlegroups.com, huanr
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9597

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -15 lines) Patch
M chrome/browser/net/sdch_dictionary_fetcher.h View 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/net/sdch_dictionary_fetcher.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M net/base/sdch_manager.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/base/sdch_manager.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 3 2 chunks +4 lines, -0 lines 1 comment Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 3 chunks +6 lines, -2 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
jar (doing other things)
11 years, 10 months ago (2009-02-11 02:51:05 UTC) #1
wtc
LGTM. http://codereview.chromium.org/20254/diff/17/19 File net/base/sdch_manager.cc (right): http://codereview.chromium.org/20254/diff/17/19#newcode367 Line 367: A dictionary is invalid and must not ...
11 years, 10 months ago (2009-02-11 19:38:30 UTC) #2
jar (doing other things)
http://codereview.chromium.org/20254/diff/17/19 File net/base/sdch_manager.cc (right): http://codereview.chromium.org/20254/diff/17/19#newcode367 Line 367: A dictionary is invalid and must not be ...
11 years, 10 months ago (2009-02-11 21:26:59 UTC) #3
Lincoln
11 years, 10 months ago (2009-02-17 21:43:50 UTC) #4
http://codereview.chromium.org/20254/diff/1027/1028
File net/url_request/url_request_http_job.cc (right):

http://codereview.chromium.org/20254/diff/1027/1028#newcode68
Line 68: SdchManager::Global()->FetchDictionary(sdch_dictionary_url_);
Could this cause a crash if, when the browser is shut down, there is a pending
URLRequestHttpJob and the destructor for the global SdchManager is called before
the destructor for the URLRequestHttpJob?

http://codereview.chromium.org/20254/diff/1027/1033
File net/url_request/url_request_http_job.h (right):

http://codereview.chromium.org/20254/diff/1027/1033#newcode85
Line 85: GURL sdch_dictionary_url_;
Since you're using GURL, you might want to add:
#include "googleurl/src/gurl.h"

Powered by Google App Engine
This is Rietveld 408576698