// Copyright (c) 2012 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"
#include"base/logging.h"
namespace base { namespace internal {
namespace {
bool QueryCancellationTraitsForNonCancellables( const BindStateBase*,
BindStateBase::CancellationQueryMode mode) { switch (mode) { case BindStateBase::IS_CANCELLED: returnfalse; case BindStateBase::MAYBE_VALID: returntrue;
}
NOTREACHED(); returnfalse;
}
void CallbackBase::Reset() { // NULL the bind_state_ last, since it may be holding the last ref to whatever // object owns us, and we may be deleted after that.
bind_state_ = nullptr;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.