| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2010 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 CHROME_BROWSER_TRANSLATE_TRANSLATE_PREFS_H_ |    5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_PREFS_H_ | 
|    6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_PREFS_H_ |    6 #define CHROME_BROWSER_TRANSLATE_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  |   16  | 
|   17 namespace base { |   17 namespace base { | 
|   18 class DictionaryValue; |   18 class DictionaryValue; | 
|   19 class ListValue; |   19 class ListValue; | 
|   20 } |   20 } | 
|   21  |   21  | 
|   22 namespace user_prefs { |   22 namespace user_prefs { | 
|   23 class PrefRegistrySyncable; |   23 class PrefRegistrySyncable; | 
|   24 } |   24 } | 
|   25  |   25  | 
 |   26 // The wrapper of PrefService object for Translate. | 
 |   27 // | 
 |   28 // It is assumed that |prefs_| is alive while this instance is alive. | 
|   26 class TranslatePrefs { |   29 class TranslatePrefs { | 
|   27  public: |   30  public: | 
|   28   static const char kPrefTranslateLanguageBlacklist[]; |   31   static const char kPrefTranslateLanguageBlacklist[]; | 
|   29   static const char kPrefTranslateSiteBlacklist[]; |   32   static const char kPrefTranslateSiteBlacklist[]; | 
|   30   static const char kPrefTranslateWhitelists[]; |   33   static const char kPrefTranslateWhitelists[]; | 
|   31   static const char kPrefTranslateDeniedCount[]; |   34   static const char kPrefTranslateDeniedCount[]; | 
|   32   static const char kPrefTranslateAcceptedCount[]; |   35   static const char kPrefTranslateAcceptedCount[]; | 
|   33   static const char kPrefTranslateBlockedLanguages[]; |   36   static const char kPrefTranslateBlockedLanguages[]; | 
|   34  |   37  | 
|   35   explicit TranslatePrefs(PrefService* user_prefs); |   38   explicit TranslatePrefs(PrefService* user_prefs); | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  121   // Retrieves the dictionary mapping the number of times translation has been |  124   // Retrieves the dictionary mapping the number of times translation has been | 
|  122   // accepted for a language, creating it if necessary. |  125   // accepted for a language, creating it if necessary. | 
|  123   base::DictionaryValue* GetTranslationAcceptedCountDictionary() const; |  126   base::DictionaryValue* GetTranslationAcceptedCountDictionary() const; | 
|  124  |  127  | 
|  125   PrefService* prefs_;  // Weak. |  128   PrefService* prefs_;  // Weak. | 
|  126  |  129  | 
|  127   DISALLOW_COPY_AND_ASSIGN(TranslatePrefs); |  130   DISALLOW_COPY_AND_ASSIGN(TranslatePrefs); | 
|  128 }; |  131 }; | 
|  129  |  132  | 
|  130 #endif  // CHROME_BROWSER_TRANSLATE_TRANSLATE_PREFS_H_ |  133 #endif  // CHROME_BROWSER_TRANSLATE_TRANSLATE_PREFS_H_ | 
| OLD | NEW |