Proper positioning of new dialog style print preview.
[chromium-blink-merge.git] / base / tracking_info.h
blob738bdee20b7e1b7c6451a4adb9d35804ac18c3d8
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This is a simple struct with tracking information that is stored
6 // with a PendingTask (when message_loop is handling the task).
7 // Only the information that is shared with the profiler in tracked_objects
8 // are included in this structure.
11 #ifndef BASE_TRACKING_INFO_H_
12 #define BASE_TRACKING_INFO_H_
14 #include "base/time.h"
16 namespace tracked_objects {
17 class Location;
18 class Births;
21 namespace base {
23 // This structure is copied around by value.
24 struct BASE_EXPORT TrackingInfo {
25 TrackingInfo();
26 TrackingInfo(const tracked_objects::Location& posted_from,
27 base::TimeTicks delayed_run_time);
28 ~TrackingInfo();
30 // Record of location and thread that the task came from.
31 tracked_objects::Births* birth_tally;
33 // Time when the related task was posted.
34 base::TimeTicks time_posted;
36 // The time when the task should be run.
37 base::TimeTicks delayed_run_time;
40 } // namespace base
42 #endif // BASE_TRACKING_INFO_H_