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

Unified Diff: chrome/browser/translate/chrome_translate_client.h

Issue 2396783002: Add LanguageModel, a keyed service that collects language info from CLD. (Closed)
Patch Set: Fixing incognito Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/translate/chrome_translate_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/chrome_translate_client.h
diff --git a/chrome/browser/translate/chrome_translate_client.h b/chrome/browser/translate/chrome_translate_client.h
index cf4a3565eb83e966ab9c3f8b4ead42dfc7066570..cf027569a97d7195652d9b259ccc2421e00e7ab2 100644
--- a/chrome/browser/translate/chrome_translate_client.h
+++ b/chrome/browser/translate/chrome_translate_client.h
@@ -29,6 +29,7 @@ class ScopedCLDDynamicDataHarness;
class PrefService;
namespace translate {
+class LanguageModel;
class LanguageState;
class TranslateAcceptLanguages;
class TranslatePrefs;
@@ -122,6 +123,10 @@ class ChromeTranslateClient
translate::ContentTranslateDriver translate_driver_;
std::unique_ptr<translate::TranslateManager> translate_manager_;
+ // Model to be notified about detected language of every page visited. Not
+ // owned here.
+ translate::LanguageModel* language_model_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeTranslateClient);
};
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/translate/chrome_translate_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698