diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-18 21:48:15 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-18 21:48:15 +0000 |
commit | 2ab9d4d9df442ff2cf4d622d6d37298284c06365 (patch) | |
tree | 2ea6c3c131e46c951ec4b48ac3a9841634f463b6 /base/callback_internal.cc | |
parent | a6a62db1253843e10fb44d97f442946e37d2b90f (diff) | |
download | chromium_src-2ab9d4d9df442ff2cf4d622d6d37298284c06365.zip chromium_src-2ab9d4d9df442ff2cf4d622d6d37298284c06365.tar.gz chromium_src-2ab9d4d9df442ff2cf4d622d6d37298284c06365.tar.bz2 |
Revert "Callback: De-inline CallbackBase, and move to callback_helpers -> callback_internal.h"
This reverts commit r75443.
TBR=akalin
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/callback_internal.cc')
-rw-r--r-- | base/callback_internal.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/base/callback_internal.cc b/base/callback_internal.cc deleted file mode 100644 index 979543e..0000000 --- a/base/callback_internal.cc +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2011 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/callback_internal.h" - -namespace base { -namespace internal { - -bool CallbackBase::is_null() const { - return invoker_storage_.get() == NULL; -} - -void CallbackBase::Reset() { - invoker_storage_ = NULL; - polymorphic_invoke_ = NULL; -} - -bool CallbackBase::Equals(const CallbackBase& other) const { - return invoker_storage_.get() == other.invoker_storage_.get() && - polymorphic_invoke_ == other.polymorphic_invoke_; -} - -CallbackBase::CallbackBase(InvokeFuncStorage polymorphic_invoke, - scoped_refptr<InvokerStorageBase>* invoker_storage) - : polymorphic_invoke_(polymorphic_invoke) { - if (invoker_storage) { - invoker_storage_.swap(*invoker_storage); - } -} - -} // namespace base -} // namespace internal |