chromium/extensions/common/api/messaging/port_context.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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() {}

}  // namespace

ScopedPortContextCrashKeys::ScopedPortContextCrashKeys(
    const PortContext& port_context) {}

ScopedPortContextCrashKeys::~ScopedPortContextCrashKeys() = default;

}  // namespace debug
}  // namespace extensions