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

Side by Side Diff: chrome/browser/translate/translate_delegate_impl.h

Issue 131463002: Move TranslateURLFetcher to the translate component (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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698