| Index: third_party/libaddressinput/chromium/chrome_downloader_impl.h
|
| diff --git a/third_party/libaddressinput/chromium/chrome_downloader_impl.h b/third_party/libaddressinput/chromium/chrome_downloader_impl.h
|
| index 09a9e7ae4f21d128d1e478947699993d6d501ea1..2eec9e394e8521563f6bf9246833d7b11583e2b4 100644
|
| --- a/third_party/libaddressinput/chromium/chrome_downloader_impl.h
|
| +++ b/third_party/libaddressinput/chromium/chrome_downloader_impl.h
|
| @@ -36,16 +36,21 @@ class ChromeDownloaderImpl : public ::i18n::addressinput::Downloader,
|
|
|
| private:
|
| struct Request {
|
| - Request(const std::string& url, scoped_ptr<Callback> callback);
|
| + Request(const std::string& url,
|
| + scoped_ptr<net::URLFetcher> fetcher,
|
| + scoped_ptr<Callback> callback);
|
|
|
| std::string url;
|
| + // The object that manages retrieving the data.
|
| + scoped_ptr<net::URLFetcher> fetcher;
|
| + // The data that's received.
|
| + std::string data;
|
| scoped_ptr<Callback> callback;
|
| };
|
|
|
| net::URLRequestContextGetter* const getter_; // weak
|
|
|
| - // Maps from active url fetcher to request metadata. Both the key and value
|
| - // are owned.
|
| + // Maps from active url fetcher to request metadata. The value is owned.
|
| std::map<const net::URLFetcher*, Request*> requests_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ChromeDownloaderImpl);
|
|
|