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

Unified Diff: chrome/browser/task_management/sampling/task_group_sampler.h

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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
Index: chrome/browser/task_management/sampling/task_group_sampler.h
diff --git a/chrome/browser/task_management/sampling/task_group_sampler.h b/chrome/browser/task_management/sampling/task_group_sampler.h
index 1d2c6134370c70b9afe4c2ffbf532584296a894f..b70b6eb6288b92302f673e973360b9dc86af177e 100644
--- a/chrome/browser/task_management/sampling/task_group_sampler.h
+++ b/chrome/browser/task_management/sampling/task_group_sampler.h
@@ -5,22 +5,26 @@
#ifndef CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_GROUP_SAMPLER_H_
#define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_GROUP_SAMPLER_H_
+#include <stdint.h>
+
#include "base/callback.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/process/process.h"
#include "base/process/process_handle.h"
#include "base/process/process_metrics.h"
#include "base/sequence_checker.h"
#include "base/sequenced_task_runner.h"
+#include "build/build_config.h"
namespace task_management {
// Wraps the memory usage stats values together so that it can be sent between
// the UI and the worker threads.
struct MemoryUsageStats {
- int64 private_bytes;
- int64 shared_bytes;
- int64 physical_bytes;
+ int64_t private_bytes;
+ int64_t shared_bytes;
+ int64_t physical_bytes;
MemoryUsageStats()
: private_bytes(-1),
@@ -58,7 +62,7 @@ class TaskGroupSampler : public base::RefCountedThreadSafe<TaskGroupSampler> {
// Refreshes the expensive process' stats (CPU usage, memory usage, and idle
// wakeups per second) on the worker thread.
- void Refresh(int64 refresh_flags);
+ void Refresh(int64_t refresh_flags);
private:
friend class base::RefCountedThreadSafe<TaskGroupSampler>;
« no previous file with comments | « chrome/browser/task_management/sampling/task_group.cc ('k') | chrome/browser/task_management/sampling/task_group_sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698