| Index: chrome/browser/net/sdch_dictionary_fetcher.h
|
| diff --git a/chrome/browser/net/sdch_dictionary_fetcher.h b/chrome/browser/net/sdch_dictionary_fetcher.h
|
| index 96617438fb90477afbfca891aebd4e64e1d7f51b..7eea42aba4fe26dfd0c000f75c9fd367dd564720 100644
|
| --- a/chrome/browser/net/sdch_dictionary_fetcher.h
|
| +++ b/chrome/browser/net/sdch_dictionary_fetcher.h
|
| @@ -29,13 +29,13 @@ class SdchDictionaryFetcher
|
| public net::SdchFetcher,
|
| public base::NonThreadSafe {
|
| public:
|
| - explicit SdchDictionaryFetcher(net::URLRequestContextGetter* context);
|
| + // Consumer must guarantee that the SdchManager pointer outlives
|
| + // this object. The current implementation guarantees this by
|
| + // the SdchManager owning this object.
|
| + SdchDictionaryFetcher(net::SdchManager* manager,
|
| + net::URLRequestContextGetter* context);
|
| virtual ~SdchDictionaryFetcher();
|
|
|
| - // Stop fetching dictionaries, and abandon any current URLFetcheer operations
|
| - // so that the IO thread can be stopped.
|
| - static void Shutdown();
|
| -
|
| // Implementation of SdchFetcher class.
|
| // This method gets the requested dictionary, and then calls back into the
|
| // SdchManager class with the dictionary's text.
|
| @@ -59,6 +59,8 @@ class SdchDictionaryFetcher
|
| // completes (either successfully or with failure).
|
| virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
|
|
|
| + net::SdchManager* const manager_;
|
| +
|
| // A queue of URLs that are being used to download dictionaries.
|
| std::queue<GURL> fetch_queue_;
|
| // The currently outstanding URL fetch of a dicitonary.
|
|
|