blob: 0b091f8b68b49ac6ce073733298b2b7aebe261a9 [file] [log] [blame]
jar@chromium.org2ed3a132012-07-31 03:41:53 +09001// Copyright (c) 2012 The Chromium Authors. All rights reserved.
jar@chromium.org4be2cb02011-11-01 07:36:21 +09002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "base/tracking_info.h"
6
jar@chromium.org2ed3a132012-07-31 03:41:53 +09007#include <stddef.h>
jar@chromium.org4be2cb02011-11-01 07:36:21 +09008#include "base/tracked_objects.h"
9
10namespace base {
11
jar@chromium.org2ed3a132012-07-31 03:41:53 +090012TrackingInfo::TrackingInfo()
13 : birth_tally(NULL) {
14}
15
jar@chromium.org4be2cb02011-11-01 07:36:21 +090016TrackingInfo::TrackingInfo(
17 const tracked_objects::Location& posted_from,
18 base::TimeTicks delayed_run_time)
19 : birth_tally(
20 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)),
21 time_posted(TimeTicks::Now()),
22 delayed_run_time(delayed_run_time) {
23}
24
25TrackingInfo::~TrackingInfo() {}
26
27} // namespace base
28