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

Unified Diff: chrome/browser/translate/translate_manager.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
« no previous file with comments | « chrome/browser/tab_contents/spelling_menu_observer.h ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_manager.h
diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h
index 3ee3c83f079ba5817cad64c17ea9f11b61d012df..2b9c9b2f4cbff2a704d02ceaa17a384294606555 100644
--- a/chrome/browser/translate/translate_manager.h
+++ b/chrome/browser/translate/translate_manager.h
@@ -20,7 +20,7 @@
#include "chrome/common/translate_errors.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-#include "content/public/common/url_fetcher_delegate.h"
+#include "net/url_request/url_fetcher_delegate.h"
template <typename T> struct DefaultSingletonTraits;
class GURL;
@@ -32,13 +32,17 @@ namespace content {
class WebContents;
}
+namespace net {
+class URLFetcher;
+}
+
// The TranslateManager class is responsible for showing an info-bar when a page
// in a language different than the user language is loaded. It triggers the
// page translation the user requests.
// It is a singleton.
class TranslateManager : public content::NotificationObserver,
- public content::URLFetcherDelegate {
+ public net::URLFetcherDelegate {
public:
// Returns the singleton instance.
static TranslateManager* GetInstance();
@@ -79,7 +83,7 @@ class TranslateManager : public content::NotificationObserver,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // content::URLFetcherDelegate implementation:
+ // net::URLFetcherDelegate implementation:
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
// Used by unit-tests to override the default delay after which the translate
@@ -208,11 +212,11 @@ class TranslateManager : public content::NotificationObserver,
base::TimeDelta translate_script_expiration_delay_;
// Set when the translate JS is currently being retrieved. NULL otherwise.
- scoped_ptr<content::URLFetcher> translate_script_request_pending_;
+ scoped_ptr<net::URLFetcher> translate_script_request_pending_;
// Set when the list of languages is currently being retrieved.
// NULL otherwise.
- scoped_ptr<content::URLFetcher> language_list_request_pending_;
+ scoped_ptr<net::URLFetcher> language_list_request_pending_;
// The list of pending translate requests. Translate requests are queued when
// the translate script is not ready and has to be fetched from the translate
« no previous file with comments | « chrome/browser/tab_contents/spelling_menu_observer.h ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698