| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // parents. | 88 // parents. |
| 89 // Returns message bundle if it can load default locale messages file, and all | 89 // Returns message bundle if it can load default locale messages file, and all |
| 90 // messages are valid, else returns NULL and sets error. | 90 // messages are valid, else returns NULL and sets error. |
| 91 ExtensionMessageBundle* LoadMessageCatalogs( | 91 ExtensionMessageBundle* LoadMessageCatalogs( |
| 92 const FilePath& locale_path, | 92 const FilePath& locale_path, |
| 93 const std::string& default_locale, | 93 const std::string& default_locale, |
| 94 const std::string& app_locale, | 94 const std::string& app_locale, |
| 95 const std::set<std::string>& valid_locales, | 95 const std::set<std::string>& valid_locales, |
| 96 std::string* error); | 96 std::string* error); |
| 97 | 97 |
| 98 // Applies FilterPolicy::FILTER_EXTENSION_MESSAGES to all text/css requests | |
| 99 // that have "chrome-extension://" scheme. | |
| 100 void ApplyMessageFilterPolicy(const GURL& url, | |
| 101 const ResourceType::Type& resource_type, | |
| 102 ResourceDispatcherHostRequestInfo* request_info); | |
| 103 | |
| 104 } // namespace extension_l10n_util | 98 } // namespace extension_l10n_util |
| 105 | 99 |
| 106 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ | 100 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_L10N_UTIL_H_ |
| OLD | NEW |