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

Unified Diff: chrome/browser/spellchecker/spelling_service_client.h

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup Created 8 years, 7 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: chrome/browser/spellchecker/spelling_service_client.h
diff --git a/chrome/browser/spellchecker/spelling_service_client.h b/chrome/browser/spellchecker/spelling_service_client.h
index a4ece9d5bb10b690495b7931246c1db26651be7e..ebbb5f9c4264ddd9172dd1a39190ab7240b6b6ec 100644
--- a/chrome/browser/spellchecker/spelling_service_client.h
+++ b/chrome/browser/spellchecker/spelling_service_client.h
@@ -13,13 +13,17 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
-#include "content/public/common/url_fetcher_delegate.h"
+#include "net/url_request/url_fetcher_delegate.h"
class GURL;
class Profile;
class TextCheckClientDelegate;
struct SpellCheckResult;
+namespace net {
+class URLFetcher;
+} // namespace net
+
// A class that encapsulates a JSON-RPC call to the Spelling service to check
// text there. This class creates a JSON-RPC request, sends the request to the
// service with URLFetcher, parses a response from the service, and calls a
@@ -50,7 +54,7 @@ struct SpellCheckResult;
// scoped_ptr<SpellingServiceClient> client_;
// };
//
-class SpellingServiceClient : public content::URLFetcherDelegate {
+class SpellingServiceClient : public net::URLFetcherDelegate {
public:
// Service types provided by the Spelling service. The Spelling service
// consists of a couple of backends:
@@ -71,7 +75,7 @@ class SpellingServiceClient : public content::URLFetcherDelegate {
SpellingServiceClient();
virtual ~SpellingServiceClient();
- // content::URLFetcherDelegate implementation.
+ // net::URLFetcherDelegate implementation.
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
// Sends a text-check request to the Spelling service. When we send a request
@@ -88,14 +92,14 @@ class SpellingServiceClient : public content::URLFetcherDelegate {
// Creates a URLFetcher object used for sending a JSON-RPC request. This
// function is overriden by unit tests to prevent them from actually sending
// requests to the Spelling service.
- virtual content::URLFetcher* CreateURLFetcher(const GURL& url);
+ virtual net::URLFetcher* CreateURLFetcher(const GURL& url);
// Parses a JSON-RPC response from the Spelling service.
bool ParseResponse(const std::string& data,
std::vector<SpellCheckResult>* results);
// The URLFetcher object used for sending a JSON-RPC request.
- scoped_ptr<content::URLFetcher> fetcher_;
+ scoped_ptr<net::URLFetcher> fetcher_;
// The callback function to be called when we receive a response from the
// Spelling service and parse it.
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_host_impl.cc ('k') | chrome/browser/spellchecker/spelling_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698