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

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: 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
17 namespace translate {
16 class TranslateAcceptLanguages; 18 class TranslateAcceptLanguages;
droger 2014/07/09 07:52:44 Nit: same here.
nshaik 2014/07/09 08:56:52 Done.
19 }
17 20
18 namespace base { 21 namespace base {
19 class DictionaryValue; 22 class DictionaryValue;
20 class ListValue; 23 class ListValue;
21 } 24 }
22 25
23 namespace user_prefs { 26 namespace user_prefs {
24 class PrefRegistrySyncable; 27 class PrefRegistrySyncable;
25 } 28 }
26 29
30 namespace translate {
31
27 // The wrapper of PrefService object for Translate. 32 // The wrapper of PrefService object for Translate.
28 // 33 //
29 // It is assumed that |prefs_| is alive while this instance is alive. 34 // It is assumed that |prefs_| is alive while this instance is alive.
30 class TranslatePrefs { 35 class TranslatePrefs {
31 public: 36 public:
32 static const char kPrefTranslateLanguageBlacklist[]; 37 static const char kPrefTranslateLanguageBlacklist[];
33 static const char kPrefTranslateSiteBlacklist[]; 38 static const char kPrefTranslateSiteBlacklist[];
34 static const char kPrefTranslateWhitelists[]; 39 static const char kPrefTranslateWhitelists[];
35 static const char kPrefTranslateDeniedCount[]; 40 static const char kPrefTranslateDeniedCount[];
36 static const char kPrefTranslateAcceptedCount[]; 41 static const char kPrefTranslateAcceptedCount[];
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 157
153 // Retrieves the dictionary mapping the number of times translation has been 158 // Retrieves the dictionary mapping the number of times translation has been
154 // accepted for a language, creating it if necessary. 159 // accepted for a language, creating it if necessary.
155 base::DictionaryValue* GetTranslationAcceptedCountDictionary() const; 160 base::DictionaryValue* GetTranslationAcceptedCountDictionary() const;
156 161
157 PrefService* prefs_; // Weak. 162 PrefService* prefs_; // Weak.
158 163
159 DISALLOW_COPY_AND_ASSIGN(TranslatePrefs); 164 DISALLOW_COPY_AND_ASSIGN(TranslatePrefs);
160 }; 165 };
161 166
167 } // namespace translate
168
162 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_PREFS_H_ 169 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698