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

Unified Diff: chrome/browser/translate/chrome_translate_delegate.h

Issue 131463002: Move TranslateURLFetcher to the translate component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix translate.gypi for real 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
« no previous file with comments | « no previous file | chrome/browser/translate/chrome_translate_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/chrome_translate_delegate.h
diff --git a/chrome/browser/translate/chrome_translate_delegate.h b/chrome/browser/translate/chrome_translate_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d543630d9ef6fa5f823476a4cdc3897f33f67a6
--- /dev/null
+++ b/chrome/browser/translate/chrome_translate_delegate.h
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_DELEGATE_H_
+#define CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_DELEGATE_H_
+
+#include "components/translate/core/browser/translate_delegate.h"
+
+#include <string>
+
+#include "base/compiler_specific.h"
+
+template <typename T>
+struct DefaultSingletonTraits;
+
+namespace net {
+class URLRequestContextGetter;
+}
+
+// Chrome embedder for the translate component.
+class ChromeTranslateDelegate : public TranslateDelegate {
+ public:
+ // Returns the singleton instance.
+ // TODO(droger): Improve the ownership model. See http://crbug.com/332736.
+ static ChromeTranslateDelegate* GetInstance();
+
+ virtual ~ChromeTranslateDelegate();
+
+ private:
+ friend struct DefaultSingletonTraits<ChromeTranslateDelegate>;
+ ChromeTranslateDelegate();
+
+ // TranslateDelegate methods.
+ virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE;
+};
+
+#endif // CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_DELEGATE_H_
« no previous file with comments | « no previous file | chrome/browser/translate/chrome_translate_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698