chromium/base/memory/weak_ptr.cc

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

#include "base/memory/weak_ptr.h"

#if DCHECK_IS_ON()
#include <ostream>

#include "base/debug/stack_trace.h"
#endif

namespace base::internal {

WeakReference::Flag::Flag() {}

void WeakReference::Flag::Invalidate() {}

bool WeakReference::Flag::IsValid() const {}

bool WeakReference::Flag::MaybeValid() const {}

#if DCHECK_IS_ON()
void WeakReference::Flag::DetachFromSequence() {}

void WeakReference::Flag::BindToCurrentSequence() {}
#endif

WeakReference::Flag::~Flag() = default;

WeakReference::WeakReference() = default;
WeakReference::WeakReference(const scoped_refptr<Flag>& flag) :{}
WeakReference::~WeakReference() = default;

WeakReference::WeakReference(const WeakReference& other) = default;
WeakReference& WeakReference::operator=(const WeakReference& other) = default;

WeakReference::WeakReference(WeakReference&& other) noexcept = default;
WeakReference& WeakReference::operator=(WeakReference&& other) noexcept =
    default;

void WeakReference::Reset() {}

bool WeakReference::IsValid() const {}

bool WeakReference::MaybeValid() const {}

WeakReferenceOwner::WeakReferenceOwner()
    :{}

WeakReferenceOwner::~WeakReferenceOwner() {}

WeakReference WeakReferenceOwner::GetRef() const {}

void WeakReferenceOwner::Invalidate() {}

void WeakReferenceOwner::BindToCurrentSequence() {}

WeakPtrFactoryBase::WeakPtrFactoryBase(uintptr_t ptr) :{}

WeakPtrFactoryBase::~WeakPtrFactoryBase() {}

}  // namespace base::internal