#ifndef EXTENSIONS_COMMON_UTILS_EXTENSION_UTILS_H_
#define EXTENSIONS_COMMON_UTILS_EXTENSION_UTILS_H_
#include "extensions/common/extension_id.h"
#include "extensions/common/mojom/host_id.mojom.h"
namespace extensions {
class Extension;
const ExtensionId& MaybeGetExtensionId(const Extension* extension);
inline mojom::HostID GenerateHostIdFromExtensionId(
const ExtensionId& extension_id) { … }
inline mojom::HostID GenerateHostIdFromExtension(const Extension* extension) { … }
inline const ExtensionId& GenerateExtensionIdFromHostId(
const mojom::HostID& host_id) { … }
}
#endif