Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: chrome/common/extensions/message_bundle.h

Issue 12319073: Delete the extensions i18n message map when extension unload is received. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge AUTHORS Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/i18n/i18n_apitest.cc ('k') | chrome/common/extensions/message_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698