| OLD | NEW |
| 1 // Copyright (c) 2009 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 // 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 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "webkit/glue/resource_type.h" | |
| 15 | |
| 16 class DictionaryValue; | 14 class DictionaryValue; |
| 17 class Extension; | 15 class Extension; |
| 18 class ExtensionMessageBundle; | 16 class ExtensionMessageBundle; |
| 19 class FilePath; | 17 class FilePath; |
| 20 class GURL; | 18 class GURL; |
| 21 class ResourceDispatcherHostRequestInfo; | 19 class ResourceDispatcherHostRequestInfo; |
| 22 struct ExtensionInfo; | 20 struct ExtensionInfo; |
| 23 | 21 |
| 24 namespace extension_l10n_util { | 22 namespace extension_l10n_util { |
| 25 | 23 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // |locales_path| is extension_id/_locales | 102 // |locales_path| is extension_id/_locales |
| 105 // |locale_path| is extension_id/_locales/xx | 103 // |locale_path| is extension_id/_locales/xx |
| 106 // |all_locales| is a set of all valid Chrome locales. | 104 // |all_locales| is a set of all valid Chrome locales. |
| 107 bool ShouldSkipValidation(const FilePath& locales_path, | 105 bool ShouldSkipValidation(const FilePath& locales_path, |
| 108 const FilePath& locale_path, | 106 const FilePath& locale_path, |
| 109 const std::set<std::string>& all_locales); | 107 const std::set<std::string>& all_locales); |
| 110 | 108 |
| 111 } // namespace extension_l10n_util | 109 } // namespace extension_l10n_util |
| 112 | 110 |
| 113 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ | 111 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |
| OLD | NEW |