| OLD | NEW |
| 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 // This file declares extension specific l10n utils. | 5 // This file declares extension specific l10n utils. |
| 6 | 6 |
| 7 #ifndef EXTENSIONS_COMMON_EXTENSION_L10N_UTIL_H_ | 7 #ifndef EXTENSIONS_COMMON_EXTENSION_L10N_UTIL_H_ |
| 8 #define EXTENSIONS_COMMON_EXTENSION_L10N_UTIL_H_ | 8 #define EXTENSIONS_COMMON_EXTENSION_L10N_UTIL_H_ |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class DictionaryValue; | 15 class DictionaryValue; |
| 16 class FilePath; | 16 class FilePath; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace extensions { | 19 namespace extensions { |
| 20 struct ExtensionInfo; | |
| 21 class MessageBundle; | 20 class MessageBundle; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace extension_l10n_util { | 23 namespace extension_l10n_util { |
| 25 | 24 |
| 26 // Set the locale for this process to a fixed value, rather than using the | 25 // Set the locale for this process to a fixed value, rather than using the |
| 27 // normal file-based lookup mechanisms. This is used to set the locale inside | 26 // normal file-based lookup mechanisms. This is used to set the locale inside |
| 28 // the sandboxed utility process, where file reading is not allowed. | 27 // the sandboxed utility process, where file reading is not allowed. |
| 29 void SetProcessLocale(const std::string& locale); | 28 void SetProcessLocale(const std::string& locale); |
| 30 | 29 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 120 |
| 122 ~ScopedLocaleForTest(); | 121 ~ScopedLocaleForTest(); |
| 123 | 122 |
| 124 private: | 123 private: |
| 125 std::string locale_; // The current locale at ctor time. | 124 std::string locale_; // The current locale at ctor time. |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 } // namespace extension_l10n_util | 127 } // namespace extension_l10n_util |
| 129 | 128 |
| 130 #endif // EXTENSIONS_COMMON_EXTENSION_L10N_UTIL_H_ | 129 #endif // EXTENSIONS_COMMON_EXTENSION_L10N_UTIL_H_ |
| OLD | NEW |