| Index: components/spellcheck/browser/spelling_service_client.h
|
| diff --git a/components/spellcheck/browser/spelling_service_client.h b/components/spellcheck/browser/spelling_service_client.h
|
| index 97ad1b1ca1646ae3d974a24fdba4032b2c575a53..344e455816732de78961be8bc443699b3bc867f5 100644
|
| --- a/components/spellcheck/browser/spelling_service_client.h
|
| +++ b/components/spellcheck/browser/spelling_service_client.h
|
| @@ -97,10 +97,14 @@ class SpellingServiceClient : public net::URLFetcherDelegate {
|
|
|
| private:
|
| struct TextCheckCallbackData {
|
| - TextCheckCallbackData(TextCheckCompleteCallback callback,
|
| + TextCheckCallbackData(std::unique_ptr<net::URLFetcher> fetcher,
|
| + TextCheckCompleteCallback callback,
|
| base::string16 text);
|
| ~TextCheckCallbackData();
|
|
|
| + // The fetcher used.
|
| + std::unique_ptr<net::URLFetcher> fetcher;
|
| +
|
| // The callback function to be called when we receive a response from the
|
| // Spelling service and parse it.
|
| TextCheckCompleteCallback callback;
|
| @@ -118,7 +122,8 @@ class SpellingServiceClient : public net::URLFetcherDelegate {
|
| virtual std::unique_ptr<net::URLFetcher> CreateURLFetcher(const GURL& url);
|
|
|
| // The URLFetcher object used for sending a JSON-RPC request.
|
| - std::map<const net::URLFetcher*, TextCheckCallbackData*> spellcheck_fetchers_;
|
| + std::map<const net::URLFetcher*, std::unique_ptr<TextCheckCallbackData>>
|
| + spellcheck_fetchers_;
|
| };
|
|
|
| #endif // COMPONENTS_SPELLCHECK_BROWSER_SPELLING_SERVICE_CLIENT_H_
|
|
|