Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3436)

Unified Diff: base/message_loop.h

Issue 8400073: Revert 107793 - Fully enable about:tracking by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/location.h ('k') | base/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.h
===================================================================
--- base/message_loop.h (revision 107798)
+++ base/message_loop.h (working copy)
@@ -44,9 +44,11 @@
class Histogram;
}
+#if defined(TRACK_ALL_TASK_OBJECTS)
namespace tracked_objects {
class Births;
}
+#endif // defined(TRACK_ALL_TASK_OBJECTS)
// A MessageLoop is used to process events for a particular thread. There is
// at most one MessageLoop instance per thread.
@@ -375,22 +377,6 @@
}
#endif // OS_WIN
- // This structure is copied around by value.
- struct TrackingInfo {
- TrackingInfo(const tracked_objects::Location& posted_from,
- base::TimeTicks delayed_run_time);
- ~TrackingInfo();
-
- // Counter for location where the Closure was posted from.
- tracked_objects::Births* birth_tally;
-
- // Time this PendingTask was posted.
- base::TimeTicks time_posted;
-
- // The time when the task should be run.
- base::TimeTicks delayed_run_time;
- };
-
//----------------------------------------------------------------------------
protected:
struct RunState {
@@ -424,7 +410,7 @@
#endif
// This structure is copied around by value.
- struct PendingTask : public TrackingInfo {
+ struct PendingTask {
PendingTask(const base::Closure& task,
const tracked_objects::Location& posted_from,
base::TimeTicks delayed_run_time,
@@ -437,6 +423,17 @@
// The task to run.
base::Closure task;
+#if defined(TRACK_ALL_TASK_OBJECTS)
+ // Counter for location where the Closure was posted from.
+ tracked_objects::Births* post_births;
+#endif // defined(TRACK_ALL_TASK_OBJECTS)
+
+ // Time this PendingTask was posted.
+ base::TimeTicks time_posted;
+
+ // The time when the task should be run.
+ base::TimeTicks delayed_run_time;
+
// The site this PendingTask was posted from.
tracked_objects::Location posted_from;
« no previous file with comments | « base/location.h ('k') | base/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698