Index: chrome/browser/translate/translate_delegate_impl.h |
diff --git a/chrome/browser/translate/translate_delegate_impl.h b/chrome/browser/translate/translate_delegate_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..417c26c9b8babca8796839bc20720a8a4cba323f |
--- /dev/null |
+++ b/chrome/browser/translate/translate_delegate_impl.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_TRANSLATE_DELEGATE_IMPL_H_ |
+#define CHROME_BROWSER_TRANSLATE_TRANSLATE_DELEGATE_IMPL_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; |
+} |
+ |
+class TranslateDelegateImpl : public TranslateDelegate { |
blundell
2014/01/09 12:14:17
It would be more conventional to name this class C
blundell
2014/01/09 12:14:17
Should have a class comment.
|
+ public: |
+ |
+ // Returns the singleton instance. |
+ // TODO(droger): Improve the ownership model. See http://crbug.com/332736. |
+ static TranslateDelegateImpl* GetInstance(); |
+ |
+ virtual ~TranslateDelegateImpl(); |
+ |
+ private: |
+ friend struct DefaultSingletonTraits<TranslateDelegateImpl>; |
+ TranslateDelegateImpl(); |
+ |
+ // TranslateDelegate methods. |
+ virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; |
+ |
+}; |
+ |
+#endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_DELEGATE_IMPL_H_ |