Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_DELEGATE_IMPL_H_ | |
| 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_DELEGATE_IMPL_H_ | |
| 7 | |
| 8 #include "components/translate/core/browser/translate_delegate.h" | |
| 9 | |
| 10 #include <string> | |
| 11 | |
| 12 #include "base/compiler_specific.h" | |
| 13 | |
| 14 template <typename T> struct DefaultSingletonTraits; | |
| 15 | |
| 16 namespace net { | |
| 17 class URLRequestContextGetter; | |
| 18 } | |
| 19 | |
| 20 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.
| |
| 21 public: | |
| 22 | |
| 23 // Returns the singleton instance. | |
| 24 // TODO(droger): Improve the ownership model. See http://crbug.com/332736. | |
| 25 static TranslateDelegateImpl* GetInstance(); | |
| 26 | |
| 27 virtual ~TranslateDelegateImpl(); | |
| 28 | |
| 29 private: | |
| 30 friend struct DefaultSingletonTraits<TranslateDelegateImpl>; | |
| 31 TranslateDelegateImpl(); | |
| 32 | |
| 33 // TranslateDelegate methods. | |
| 34 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; | |
| 35 | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_DELEGATE_IMPL_H_ | |
| OLD | NEW |