diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 23:32:01 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 23:32:01 +0000 |
commit | d393a0fdb47c3416153589b5acfc6ccaae280477 (patch) | |
tree | 4fad2a87a450cac90f5c0c4594eca7737a56c3a6 /net/base/sdch_manager.h | |
parent | 042070d932d4689d2f2e7907348ecd3b52aba3be (diff) | |
download | chromium_src-d393a0fdb47c3416153589b5acfc6ccaae280477.zip chromium_src-d393a0fdb47c3416153589b5acfc6ccaae280477.tar.gz chromium_src-d393a0fdb47c3416153589b5acfc6ccaae280477.tar.bz2 |
Ensure that IO thread is not called in last actions by SDCH shutdown
Unregister the sdch_dictionary_fetcher so that it destroys any pending
URLFetcher instances when we are nearing shutdown time. Dictionaries
are only *potentially* useful (and not needed) for future SDCH
fetches, so abandoning any pending items is safe and harmless.
b=9669
r=wtc
Review URL: http://codereview.chromium.org/113235
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/sdch_manager.h')
-rw-r--r-- | net/base/sdch_manager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h index e8329e1..43fa484 100644 --- a/net/base/sdch_manager.h +++ b/net/base/sdch_manager.h @@ -217,6 +217,9 @@ class SdchManager { SdchManager(); ~SdchManager(); + // Discontinue fetching of dictionaries, as we're now shutting down. + static void Shutdown(); + // Provide access to the single instance of this class. static SdchManager* Global(); |