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

Unified Diff: components/translate/core/browser/translate_url_fetcher.h

Issue 145023015: Introduce TranslateService and TranslateDownloadManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 11 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/translate/core/browser/translate_url_fetcher.h
diff --git a/components/translate/core/browser/translate_url_fetcher.h b/components/translate/core/browser/translate_url_fetcher.h
index a702e339d4eeaaff225719218efae1de0432d7c7..608c29ebcebd4bd2a737dc6c7be3975555530a00 100644
--- a/components/translate/core/browser/translate_url_fetcher.h
+++ b/components/translate/core/browser/translate_url_fetcher.h
@@ -10,8 +10,6 @@
#include "net/url_request/url_fetcher_delegate.h"
#include "url/gurl.h"
-class TranslateDelegate;
-
class TranslateURLFetcher : public net::URLFetcherDelegate {
public:
// Callback type for Request().
@@ -25,8 +23,7 @@ class TranslateURLFetcher : public net::URLFetcherDelegate {
FAILED, // The last fetch request was finished with a failure.
};
- // |delegate| is expected to outlive the TranslateURLFetcher.
- explicit TranslateURLFetcher(int id, TranslateDelegate* delegate);
+ explicit TranslateURLFetcher(int id);
virtual ~TranslateURLFetcher();
int max_retry_on_5xx() {
@@ -62,9 +59,6 @@ class TranslateURLFetcher : public net::URLFetcherDelegate {
// ID which is assigned to the URLFetcher.
const int id_;
- // Used to get information from the embedder of Translate.
- TranslateDelegate* translate_delegate_;
-
// Internal state.
enum State state_;

Powered by Google App Engine
This is Rietveld 408576698