OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_EXTENSIONS_MESSAGE_BUNDLE_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_MESSAGE_BUNDLE_H_ |
6 #define CHROME_COMMON_EXTENSIONS_MESSAGE_BUNDLE_H_ | 6 #define CHROME_COMMON_EXTENSIONS_MESSAGE_BUNDLE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 // A map of extension ID to l10n message map. | 159 // A map of extension ID to l10n message map. |
160 typedef std::map<std::string, L10nMessagesMap > ExtensionToL10nMessagesMap; | 160 typedef std::map<std::string, L10nMessagesMap > ExtensionToL10nMessagesMap; |
161 | 161 |
162 // Returns the extension_id to messages map. | 162 // Returns the extension_id to messages map. |
163 ExtensionToL10nMessagesMap* GetExtensionToL10nMessagesMap(); | 163 ExtensionToL10nMessagesMap* GetExtensionToL10nMessagesMap(); |
164 | 164 |
165 // Returns message map that matches given extension_id, or NULL. | 165 // Returns message map that matches given extension_id, or NULL. |
166 L10nMessagesMap* GetL10nMessagesMap(const std::string& extension_id); | 166 L10nMessagesMap* GetL10nMessagesMap(const std::string& extension_id); |
167 | 167 |
| 168 // Erases the L10nMessagesMap for the given |extension_id|. |
| 169 void EraseL10nMessagesMap(const std::string& extension_id); |
| 170 |
168 } // namsepace extensions | 171 } // namsepace extensions |
169 | 172 |
170 #endif // CHROME_COMMON_EXTENSIONS_MESSAGE_BUNDLE_H_ | 173 #endif // CHROME_COMMON_EXTENSIONS_MESSAGE_BUNDLE_H_ |
OLD | NEW |