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

Side by Side Diff: chrome/browser/task_manager/test_task_manager.cc

Issue 2653563003: Add a "Keepalive count" column to Task Manager. (Closed)
Patch Set: Address review comment re description Created 3 years, 10 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
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 #include "chrome/browser/task_manager/test_task_manager.h" 5 #include "chrome/browser/task_manager/test_task_manager.h"
6 6
7 namespace task_manager { 7 namespace task_manager {
8 8
9 TestTaskManager::TestTaskManager() 9 TestTaskManager::TestTaskManager()
10 : handle_(base::kNullProcessHandle), 10 : handle_(base::kNullProcessHandle),
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 int64_t* used) const { 151 int64_t* used) const {
152 return false; 152 return false;
153 } 153 }
154 154
155 bool TestTaskManager::GetWebCacheStats( 155 bool TestTaskManager::GetWebCacheStats(
156 TaskId task_id, 156 TaskId task_id,
157 blink::WebCache::ResourceTypeStats* stats) const { 157 blink::WebCache::ResourceTypeStats* stats) const {
158 return false; 158 return false;
159 } 159 }
160 160
161 int TestTaskManager::GetKeepaliveCount(TaskId task_id) const {
162 return -1;
163 }
164
161 const TaskIdList& TestTaskManager::GetTaskIdsList() const { 165 const TaskIdList& TestTaskManager::GetTaskIdsList() const {
162 return ids_; 166 return ids_;
163 } 167 }
164 168
165 TaskIdList TestTaskManager::GetIdsOfTasksSharingSameProcess( 169 TaskIdList TestTaskManager::GetIdsOfTasksSharingSameProcess(
166 TaskId task_id) const { 170 TaskId task_id) const {
167 TaskIdList result; 171 TaskIdList result;
168 result.push_back(task_id); 172 result.push_back(task_id);
169 return result; 173 return result;
170 } 174 }
171 175
172 size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const { 176 size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const {
173 return 1; 177 return 1;
174 } 178 }
175 179
176 TaskId TestTaskManager::GetTaskIdForWebContents( 180 TaskId TestTaskManager::GetTaskIdForWebContents(
177 content::WebContents* web_contents) const { 181 content::WebContents* web_contents) const {
178 return -1; 182 return -1;
179 } 183 }
180 184
181 base::TimeDelta TestTaskManager::GetRefreshTime() { 185 base::TimeDelta TestTaskManager::GetRefreshTime() {
182 return GetCurrentRefreshTime(); 186 return GetCurrentRefreshTime();
183 } 187 }
184 188
185 int64_t TestTaskManager::GetEnabledFlags() { 189 int64_t TestTaskManager::GetEnabledFlags() {
186 return enabled_resources_flags(); 190 return enabled_resources_flags();
187 } 191 }
188 192
189 } // namespace task_manager 193 } // namespace task_manager
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/test_task_manager.h ('k') | chrome/browser/ui/task_manager/task_manager_columns.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698