Index: chrome/browser/task_manager/task_manager.h |
diff --git a/chrome/browser/task_manager/task_manager.h b/chrome/browser/task_manager/task_manager.h |
index 8c0fee679c687aea1be436b10410150032b00a28..93c3ef56f4daede6cd1980cd65141ca6987cf434 100644 |
--- a/chrome/browser/task_manager/task_manager.h |
+++ b/chrome/browser/task_manager/task_manager.h |
@@ -450,6 +450,10 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> { |
// for each one is expensive. |
void NotifyMultipleBytesRead(); |
+ // Called on the IO thread to start/stop updating byte counts. |
+ void StartUpdatingByteCount(); |
+ void StopUpdatingByteCount(); |
+ |
// 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. |
@@ -533,6 +537,9 @@ class TaskManagerModel : public base::RefCountedThreadSafe<TaskManagerModel> { |
// Whether we are currently in the process of updating. |
UpdateState update_state_; |
+ // Whether the IO thread is currently in the process of updating. |
+ bool is_updating_byte_count_; |
Lei Zhang
2014/09/06 06:17:47
nit: Mention this is only accessed on the IO threa
tonyg
2014/09/08 18:59:38
Done.
|
+ |
// A salt lick for the goats. |
uint64 goat_salt_; |