#include "extensions/renderer/shared_l10n_map.h"
#include "base/no_destructor.h"
#include "extensions/common/message_bundle.h"
#include "extensions/common/mojom/renderer_host.mojom.h"
#include "ipc/ipc_sender.h"
namespace extensions {
SharedL10nMap::SharedL10nMap() = default;
SharedL10nMap& SharedL10nMap::GetInstance() { … }
std::string SharedL10nMap::GetMessage(const ExtensionId& extension_id,
const std::string& message_name,
IPCTarget* ipc_target) { … }
bool SharedL10nMap::ReplaceMessages(const ExtensionId& extension_id,
std::string* text,
IPCTarget* ipc_target) { … }
void SharedL10nMap::EraseMessagesMap(const ExtensionId& id) { … }
void SharedL10nMap::SetMessagesForTesting(const ExtensionId& id,
L10nMessagesMap messages) { … }
const SharedL10nMap::L10nMessagesMap* SharedL10nMap::GetMapForExtension(
const ExtensionId& extension_id,
IPCTarget* ipc_target) { … }
}