Index: chrome/browser/task_management/sampling/task_group.h |
diff --git a/chrome/browser/task_management/sampling/task_group.h b/chrome/browser/task_management/sampling/task_group.h |
index cca02a639260d60d545f6146d58ff9395e93b5b6..f8e46593a7644f9d128b78fb0cd78b9ee6af3c8c 100644 |
--- a/chrome/browser/task_management/sampling/task_group.h |
+++ b/chrome/browser/task_management/sampling/task_group.h |
@@ -55,6 +55,7 @@ class TaskGroup { |
int64 gpu_memory() const { return gpu_memory_; } |
bool gpu_memory_has_duplicates() const { return gpu_memory_has_duplicates_; } |
int64 per_process_network_usage() const { return per_process_network_usage_; } |
+ bool is_backgrounded() const { return is_backgrounded_; } |
#if defined(OS_WIN) |
int64 gdi_current_handles() const { return gdi_current_handles_; } |
@@ -84,6 +85,8 @@ class TaskGroup { |
void OnIdleWakeupsRefreshDone(int idle_wakeups_per_second); |
+ void OnProcessPriorityDone(bool is_backgrounded); |
+ |
// The process' handle and ID. |
base::ProcessHandle process_handle_; |
base::ProcessId process_id_; |
@@ -113,6 +116,7 @@ class TaskGroup { |
#endif // !defined(DISABLE_NACL) |
int idle_wakeups_per_second_; |
bool gpu_memory_has_duplicates_; |
+ bool is_backgrounded_; |
// Always keep this the last member of this class so that it's the first to be |
// destroyed. |