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

Unified Diff: base/profiler/tracked_time.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 5 years 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/profiler/stack_sampling_profiler_unittest.cc ('k') | base/profiler/tracked_time.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/tracked_time.h
diff --git a/base/profiler/tracked_time.h b/base/profiler/tracked_time.h
index 23632749a00c8d3f044766ac20ed1b4d98d606a3..b32f41b39cb8a6185c568c0b26c8323e3546c21b 100644
--- a/base/profiler/tracked_time.h
+++ b/base/profiler/tracked_time.h
@@ -5,9 +5,9 @@
#ifndef BASE_PROFILER_TRACKED_TIME_H_
#define BASE_PROFILER_TRACKED_TIME_H_
+#include <stdint.h>
#include "base/base_export.h"
-#include "base/basictypes.h"
#include "base/time/time.h"
namespace tracked_objects {
@@ -36,14 +36,14 @@ class BASE_EXPORT Duration { // Similar to base::TimeDelta.
static Duration FromMilliseconds(int ms);
- int32 InMilliseconds() const;
+ int32_t InMilliseconds() const;
private:
friend class TrackedTime;
- explicit Duration(int32 duration);
+ explicit Duration(int32_t duration);
// Internal time is stored directly in milliseconds.
- int32 ms_;
+ int32_t ms_;
};
class BASE_EXPORT TrackedTime { // Similar to base::TimeTicks.
@@ -56,14 +56,14 @@ class BASE_EXPORT TrackedTime { // Similar to base::TimeTicks.
TrackedTime operator+(const Duration& other) const;
bool is_null() const;
- static TrackedTime FromMilliseconds(int32 ms) { return TrackedTime(ms); }
+ static TrackedTime FromMilliseconds(int32_t ms) { return TrackedTime(ms); }
private:
friend class Duration;
- explicit TrackedTime(int32 ms);
+ explicit TrackedTime(int32_t ms);
// Internal duration is stored directly in milliseconds.
- uint32 ms_;
+ uint32_t ms_;
};
} // namespace tracked_objects
« no previous file with comments | « base/profiler/stack_sampling_profiler_unittest.cc ('k') | base/profiler/tracked_time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698