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

Side by Side Diff: components/translate/core/browser/translate_prefs.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_PREFS_H_ 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_PREFS_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_PREFS_H_ 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_PREFS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 class PrefService; 14 class PrefService;
15 class Profile; 15 class Profile;
16 class TranslateAcceptLanguages;
17 16
18 namespace base { 17 namespace base {
19 class DictionaryValue; 18 class DictionaryValue;
20 class ListValue; 19 class ListValue;
21 } 20 }
22 21
23 namespace user_prefs { 22 namespace user_prefs {
24 class PrefRegistrySyncable; 23 class PrefRegistrySyncable;
25 } 24 }
26 25
26 namespace translate {
27
28 class TranslateAcceptLanguages;
29
27 // The wrapper of PrefService object for Translate. 30 // The wrapper of PrefService object for Translate.
28 // 31 //
29 // It is assumed that |prefs_| is alive while this instance is alive. 32 // It is assumed that |prefs_| is alive while this instance is alive.
30 class TranslatePrefs { 33 class TranslatePrefs {
31 public: 34 public:
32 static const char kPrefTranslateLanguageBlacklist[]; 35 static const char kPrefTranslateLanguageBlacklist[];
33 static const char kPrefTranslateSiteBlacklist[]; 36 static const char kPrefTranslateSiteBlacklist[];
34 static const char kPrefTranslateWhitelists[]; 37 static const char kPrefTranslateWhitelists[];
35 static const char kPrefTranslateDeniedCount[]; 38 static const char kPrefTranslateDeniedCount[];
36 static const char kPrefTranslateAcceptedCount[]; 39 static const char kPrefTranslateAcceptedCount[];
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 158
156 // Retrieves the dictionary mapping the number of times translation has been 159 // Retrieves the dictionary mapping the number of times translation has been
157 // accepted for a language, creating it if necessary. 160 // accepted for a language, creating it if necessary.
158 base::DictionaryValue* GetTranslationAcceptedCountDictionary() const; 161 base::DictionaryValue* GetTranslationAcceptedCountDictionary() const;
159 162
160 PrefService* prefs_; // Weak. 163 PrefService* prefs_; // Weak.
161 164
162 DISALLOW_COPY_AND_ASSIGN(TranslatePrefs); 165 DISALLOW_COPY_AND_ASSIGN(TranslatePrefs);
163 }; 166 };
164 167
168 } // namespace translate
169
165 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_PREFS_H_ 170 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_PREFS_H_
OLDNEW
« no previous file with comments | « components/translate/core/browser/translate_manager.cc ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698