summaryrefslogtreecommitdiffstats
path: root/base/tracking_info.cc
blob: c02b2f4758502c9a9d65f90e45bad64cc66310fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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/tracking_info.h"

#include <stddef.h>
#include "base/tracked_objects.h"

namespace base {

TrackingInfo::TrackingInfo()
    : birth_tally(NULL) {
}

TrackingInfo::TrackingInfo(
    const tracked_objects::Location& posted_from,
    base::TimeTicks delayed_run_time)
    : birth_tally(
          tracked_objects::ThreadData::TallyABirthIfActive(posted_from)),
      time_posted(tracked_objects::ThreadData::Now()),
      delayed_run_time(delayed_run_time) {
}

TrackingInfo::~TrackingInfo() {}

}  // namespace base