jar@chromium.org | 2ed3a13 | 2012-07-31 03:41:53 +0900 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
jar@chromium.org | 4be2cb0 | 2011-11-01 07:36:21 +0900 | [diff] [blame] | 2 | // 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.org | 2ed3a13 | 2012-07-31 03:41:53 +0900 | [diff] [blame] | 7 | #include <stddef.h> |
jar@chromium.org | 4be2cb0 | 2011-11-01 07:36:21 +0900 | [diff] [blame] | 8 | #include "base/tracked_objects.h" |
| 9 | |
| 10 | namespace base { |
| 11 | |
jar@chromium.org | 2ed3a13 | 2012-07-31 03:41:53 +0900 | [diff] [blame] | 12 | TrackingInfo::TrackingInfo() |
| 13 | : birth_tally(NULL) { |
| 14 | } |
| 15 | |
jar@chromium.org | 4be2cb0 | 2011-11-01 07:36:21 +0900 | [diff] [blame] | 16 | TrackingInfo::TrackingInfo( |
| 17 | const tracked_objects::Location& posted_from, |
| 18 | base::TimeTicks delayed_run_time) |
| 19 | : birth_tally( |
| 20 | tracked_objects::ThreadData::TallyABirthIfActive(posted_from)), |
jdduke | 49481fa | 2015-01-10 06:01:38 +0900 | [diff] [blame] | 21 | time_posted(tracked_objects::ThreadData::Now()), |
jar@chromium.org | 4be2cb0 | 2011-11-01 07:36:21 +0900 | [diff] [blame] | 22 | delayed_run_time(delayed_run_time) { |
| 23 | } |
| 24 | |
| 25 | TrackingInfo::~TrackingInfo() {} |
| 26 | |
| 27 | } // namespace base |
| 28 | |