| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ | 7 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |
| 8 #define CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ | 8 #define CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 class Extension; | 15 class Extension; |
| 16 class ExtensionMessageBundle; | 16 class ExtensionMessageBundle; |
| 17 class FilePath; | 17 class FilePath; |
| 18 class GURL; | |
| 19 class ResourceDispatcherHostRequestInfo; | |
| 20 struct ExtensionInfo; | 18 struct ExtensionInfo; |
| 21 | 19 |
| 22 namespace base { | 20 namespace base { |
| 23 class DictionaryValue; | 21 class DictionaryValue; |
| 24 } | 22 } |
| 25 | 23 |
| 26 namespace extension_l10n_util { | 24 namespace extension_l10n_util { |
| 27 | 25 |
| 28 // Set the locale for this process to a fixed value, rather than using the | 26 // Set the locale for this process to a fixed value, rather than using the |
| 29 // normal file-based lookup mechanisms. This is used to set the locale inside | 27 // normal file-based lookup mechanisms. This is used to set the locale inside |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // |locales_path| is extension_id/_locales | 95 // |locales_path| is extension_id/_locales |
| 98 // |locale_path| is extension_id/_locales/xx | 96 // |locale_path| is extension_id/_locales/xx |
| 99 // |all_locales| is a set of all valid Chrome locales. | 97 // |all_locales| is a set of all valid Chrome locales. |
| 100 bool ShouldSkipValidation(const FilePath& locales_path, | 98 bool ShouldSkipValidation(const FilePath& locales_path, |
| 101 const FilePath& locale_path, | 99 const FilePath& locale_path, |
| 102 const std::set<std::string>& all_locales); | 100 const std::set<std::string>& all_locales); |
| 103 | 101 |
| 104 } // namespace extension_l10n_util | 102 } // namespace extension_l10n_util |
| 105 | 103 |
| 106 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ | 104 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |
| OLD | NEW |