Chromium Code Reviews| 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..e69ec69eab09a5abd22e28a1247836a5cb3f497f 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. Usually this is done by making sure the manager |
| + // owns 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(); |
|
jar (doing other things)
2014/05/27 17:53:09
Given that the dictionary fetch is very async... I
Randy Smith (Not in Mondays)
2014/06/04 22:04:52
I believe what I currently have is equivalent to t
|
| - |
| // 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* 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. |