summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager/task_manager.h
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2015-12-25 18:18:31 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-26 02:19:43 +0000
commit664c07b4a56436648cc9339c18d3bd27ae220964 (patch)
treefc307cecfc6ec1b9d18a154f8d218c1c473e9ef6 /chrome/browser/task_manager/task_manager.h
parentb896c715dd14ec1f7ac800350b40eeb6de2ba868 (diff)
downloadchromium_src-664c07b4a56436648cc9339c18d3bd27ae220964.zip
chromium_src-664c07b4a56436648cc9339c18d3bd27ae220964.tar.gz
chromium_src-664c07b4a56436648cc9339c18d3bd27ae220964.tar.bz2
Switch to standard integer types in chrome/browser/, part 4 of 4.
BUG=138542 TBR=thakis@chromium.org NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1545223002 Cr-Commit-Position: refs/heads/master@{#366884}
Diffstat (limited to 'chrome/browser/task_manager/task_manager.h')
-rw-r--r--chrome/browser/task_manager/task_manager.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/chrome/browser/task_manager/task_manager.h b/chrome/browser/task_manager/task_manager.h
index 4ed4f0c..a015843 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -5,18 +5,20 @@
#ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
#define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
+#include <stddef.h>
#include <stdint.h>
#include <map>
#include <vector>
-#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/gtest_prod_util.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
#include "base/observer_list.h"
#include "base/strings/string16.h"
+#include "build/build_config.h"
#include "chrome/browser/task_manager/resource_provider.h"
#include "chrome/browser/ui/host_desktop.h"
#include "content/public/common/gpu_memory_stats.h"
@@ -159,7 +161,7 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// Methods to return raw resource information.
int GetNaClDebugStubPort(int index) const;
- int64 GetNetworkUsage(int index) const;
+ int64_t GetNetworkUsage(int index) const;
double GetCPUUsage(int index) const;
int GetIdleWakeupsPerSecond(int index) const;
base::ProcessId GetProcessId(int index) const;
@@ -339,7 +341,7 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
base::string16 profile_name;
// No is_network_usage since default (0) is fine.
- int64 network_usage;
+ int64_t network_usage;
bool is_process_id_valid;
base::ProcessId process_id;
@@ -395,7 +397,7 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
ResourceProviderList;
typedef std::map<base::ProcessHandle, ResourceList> GroupMap;
typedef std::map<base::ProcessHandle, base::ProcessMetrics*> MetricsMap;
- typedef std::map<task_manager::Resource*, int64> ResourceValueMap;
+ typedef std::map<task_manager::Resource*, int64_t> ResourceValueMap;
typedef std::map<task_manager::Resource*,
PerResourceValues> PerResourceCache;
typedef std::map<base::ProcessHandle, PerProcessValues> PerProcessCache;
@@ -431,7 +433,7 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// Returns the network usage (in bytes per seconds) for the specified
// resource. That's the value retrieved at the last timer's tick.
- int64 GetNetworkUsageForResource(task_manager::Resource* resource) const;
+ int64_t GetNetworkUsageForResource(task_manager::Resource* resource) const;
// Called on the UI thread when some bytes are read.
void BytesRead(BytesReadParam param);
@@ -450,7 +452,7 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// Returns the network usage (in byte per second) that should be displayed for
// the passed |resource|. -1 means the information is not available for that
// resource.
- int64 GetNetworkUsage(task_manager::Resource* resource) const;
+ int64_t GetNetworkUsage(task_manager::Resource* resource) const;
// Returns the CPU usage (in %) that should be displayed for the passed
// |resource|.
@@ -462,7 +464,7 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> {
// Given a number, this function returns the formatted string that should be
// displayed in the task manager's memory cell.
- base::string16 GetMemCellText(int64 number) const;
+ base::string16 GetMemCellText(int64_t number) const;
// Verifies the private and shared memory for |handle| is valid in
// |per_process_cache_|. Returns true if the data in |per_process_cache_| is