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

Side by Side Diff: components/translate/core/browser/translate_client.h

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing android build errors Created 6 years, 5 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "components/translate/core/browser/translate_prefs.h" 12 #include "components/translate/core/browser/translate_prefs.h"
13 #include "components/translate/core/browser/translate_step.h" 13 #include "components/translate/core/browser/translate_step.h"
14 #include "components/translate/core/common/translate_errors.h" 14 #include "components/translate/core/common/translate_errors.h"
15 15
16 class GURL; 16 class GURL;
17 class PrefService; 17 class PrefService;
18 class TranslateAcceptLanguages;
19 class TranslateDriver;
20 class TranslateInfoBarDelegate;
21 18
22 namespace infobars { 19 namespace infobars {
23 class InfoBar; 20 class InfoBar;
24 } 21 }
25 22
23 namespace translate {
24
25 class TranslateAcceptLanguages;
26 class TranslateDriver;
27 class TranslateInfoBarDelegate;
28
26 // A client interface that needs to be supplied to TranslateManager by the 29 // A client interface that needs to be supplied to TranslateManager by the
27 // embedder. 30 // embedder.
28 // 31 //
29 // Each client instance is associated with a given context within which a 32 // Each client instance is associated with a given context within which a
30 // TranslateManager is used (e.g. a single tab). 33 // TranslateManager is used (e.g. a single tab).
31 class TranslateClient { 34 class TranslateClient {
32 public: 35 public:
33 // Gets the TranslateDriver associated with the client. 36 // Gets the TranslateDriver associated with the client.
34 virtual TranslateDriver* GetTranslateDriver() = 0; 37 virtual TranslateDriver* GetTranslateDriver() = 0;
35 38
(...skipping 23 matching lines...) Expand all
59 62
60 // Returns true if the URL can be translated. 63 // Returns true if the URL can be translated.
61 virtual bool IsTranslatableURL(const GURL& url) = 0; 64 virtual bool IsTranslatableURL(const GURL& url) = 0;
62 65
63 // Presents |report_url|, a URL containing information relating to reporting 66 // Presents |report_url|, a URL containing information relating to reporting
64 // a language detection error, to the user to allow them to report language 67 // a language detection error, to the user to allow them to report language
65 // detection errors as desired. 68 // detection errors as desired.
66 virtual void ShowReportLanguageDetectionErrorUI(const GURL& report_url) = 0; 69 virtual void ShowReportLanguageDetectionErrorUI(const GURL& report_url) = 0;
67 }; 70 };
68 71
72 } // namespace translate
73
69 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_ 74 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698