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

Unified Diff: chrome/browser/task_manager/task_manager.h

Issue 542353002: Shortcut a couple of IPCs when the task manager is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments from thestig Created 6 years, 3 months 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 | « no previous file | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..76ce114c10c0725010b3dad96266c64965ac1566 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -450,6 +450,9 @@ 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 SetUpdatingByteCount(bool is_updating);
+
// 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 +536,10 @@ 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; accessed
+ // only on the IO thread.
+ bool is_updating_byte_count_;
+
// A salt lick for the goats.
uint64 goat_salt_;
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698