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.
5 #ifndef CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_DELEGATE_H_
6 #define CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_DELEGATE_H_
8 #include "components/translate/core/browser/translate_delegate.h"
12 #include "base/compiler_specific.h"
15 struct DefaultSingletonTraits
;
18 class URLRequestContextGetter
;
21 // Chrome embedder for the translate component.
22 class ChromeTranslateDelegate
: public TranslateDelegate
{
24 // Returns the singleton instance.
25 // TODO(droger): Improve the ownership model. See http://crbug.com/332736.
26 static ChromeTranslateDelegate
* GetInstance();
28 virtual ~ChromeTranslateDelegate();
31 friend struct DefaultSingletonTraits
<ChromeTranslateDelegate
>;
32 ChromeTranslateDelegate();
34 // TranslateDelegate methods.
35 virtual net::URLRequestContextGetter
* GetURLRequestContext() OVERRIDE
;
38 #endif // CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_DELEGATE_H_