Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: components/spellcheck/browser/spelling_service_client.h

Issue 2240083004: Remove stl_util's STLDeleteContainerPairPointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mattm Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698