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

Side by Side Diff: chrome/browser/task_management/providers/task.h

Issue 1137183002: New Task Manager - Phase 1.3.1.B: SubframeTask (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Nick's comments Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/task_management/providers/web_contents/subframe_task.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_TASK_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_TASK_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_TASK_H_ 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_TASK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Checking whether the task reports network usage. 87 // Checking whether the task reports network usage.
88 bool ReportsNetworkUsage() const; 88 bool ReportsNetworkUsage() const;
89 89
90 int64 task_id() const { return task_id_; } 90 int64 task_id() const { return task_id_; }
91 int64 network_usage() const { return network_usage_; } 91 int64 network_usage() const { return network_usage_; }
92 const base::string16& title() const { return title_; } 92 const base::string16& title() const { return title_; }
93 const gfx::ImageSkia& icon() const { return icon_; } 93 const gfx::ImageSkia& icon() const { return icon_; }
94 const base::ProcessHandle& process_handle() const { return process_handle_; } 94 const base::ProcessHandle& process_handle() const { return process_handle_; }
95 const base::ProcessId& process_id() const { return process_id_; } 95 const base::ProcessId& process_id() const { return process_id_; }
96 96
97 protected:
98 void set_title(const base::string16& new_title) { title_ = new_title; }
99 void set_icon(const gfx::ImageSkia& new_icon) { icon_ = new_icon; }
100
97 private: 101 private:
98 // The unique ID of this task. 102 // The unique ID of this task.
99 const int64 task_id_; 103 const int64 task_id_;
100 104
101 // The task's network usage in the current refresh cycle measured in bytes per 105 // The task's network usage in the current refresh cycle measured in bytes per
102 // second. A value of -1 means this task doesn't report network usage data. 106 // second. A value of -1 means this task doesn't report network usage data.
103 int64 network_usage_; 107 int64 network_usage_;
104 108
105 // The current network bytes received by this task during the current refresh 109 // The current network bytes received by this task during the current refresh
106 // cycle. A value of -1 means this task has never been notified of any network 110 // cycle. A value of -1 means this task has never been notified of any network
(...skipping 11 matching lines...) Expand all
118 122
119 // The PID of the process on which this task is running. 123 // The PID of the process on which this task is running.
120 const base::ProcessId process_id_; 124 const base::ProcessId process_id_;
121 125
122 DISALLOW_COPY_AND_ASSIGN(Task); 126 DISALLOW_COPY_AND_ASSIGN(Task);
123 }; 127 };
124 128
125 } // namespace task_management 129 } // namespace task_management
126 130
127 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_TASK_H_ 131 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_TASK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/task_management/providers/web_contents/subframe_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698