#include "extensions/common/api/messaging/port_context.h"
#include "extensions/common/extension_id.h"
namespace extensions {
PortContext::PortContext() = default;
PortContext::~PortContext() = default;
PortContext::PortContext(const PortContext& other) = default;
PortContext::FrameContext::FrameContext(int routing_id)
: … { … }
PortContext::FrameContext::FrameContext() = default;
PortContext::WorkerContext::WorkerContext(int thread_id,
int64_t version_id,
const ExtensionId& extension_id)
: … { … }
PortContext::WorkerContext::WorkerContext() = default;
PortContext PortContext::ForFrame(int routing_id) { … }
PortContext PortContext::ForWorker(int thread_id,
int64_t version_id,
const ExtensionId& extension_id) { … }
PortContext PortContext::ForNativeHost() { … }
namespace debug {
namespace {
base::debug::CrashKeyString* GetServiceWorkerExtensionIdCrashKey() { … }
}
ScopedPortContextCrashKeys::ScopedPortContextCrashKeys(
const PortContext& port_context) { … }
ScopedPortContextCrashKeys::~ScopedPortContextCrashKeys() = default;
}
}