mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
21 lines
688 B
C++
21 lines
688 B
C++
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "base/observer_list_internal.h"
|
|
|
|
namespace base {
|
|
namespace internal {
|
|
|
|
CheckedObserverAdapter::CheckedObserverAdapter(const CheckedObserver* observer)
|
|
: weak_ptr_(observer->factory_.GetWeakPtr()) {}
|
|
|
|
CheckedObserverAdapter::CheckedObserverAdapter(CheckedObserverAdapter&& other) =
|
|
default;
|
|
CheckedObserverAdapter& CheckedObserverAdapter::operator=(
|
|
CheckedObserverAdapter&& other) = default;
|
|
CheckedObserverAdapter::~CheckedObserverAdapter() = default;
|
|
|
|
} // namespace internal
|
|
} // namespace base
|