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

Side by Side Diff: chrome/browser/task_manager/task_manager.h

Issue 442303002: DevTools: migrate DevTools APIs to use WebContents instead of RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments addressed. Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MANAGER_TASK_MANAGER_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // resource for the given row isn't a renderer. 223 // resource for the given row isn't a renderer.
224 bool GetV8Memory(int index, size_t* result) const; 224 bool GetV8Memory(int index, size_t* result) const;
225 225
226 // Gets the amount of memory used for javascript. Returns false if the 226 // Gets the amount of memory used for javascript. Returns false if the
227 // resource for the given row isn't a renderer. 227 // resource for the given row isn't a renderer.
228 bool GetV8MemoryUsed(int index, size_t* result) const; 228 bool GetV8MemoryUsed(int index, size_t* result) const;
229 229
230 // Returns true if resource for the given row can be activated. 230 // Returns true if resource for the given row can be activated.
231 bool CanActivate(int index) const; 231 bool CanActivate(int index) const;
232 232
233 // Returns true if resource for the given row can be inspected using developer
234 // tools.
235 bool CanInspect(int index) const;
236
237 // Invokes or reveals developer tools window for resource in the given row.
238 void Inspect(int index) const;
239
240 // See design doc at http://go/at-teleporter for more information. 233 // See design doc at http://go/at-teleporter for more information.
241 int GetGoatsTeleported(int index) const; 234 int GetGoatsTeleported(int index) const;
242 235
243 // Returns true if the resource is first/last in its group (resources 236 // Returns true if the resource is first/last in its group (resources
244 // rendered by the same process are groupped together). 237 // rendered by the same process are groupped together).
245 bool IsResourceFirstInGroup(int index) const; 238 bool IsResourceFirstInGroup(int index) const;
246 bool IsResourceLastInGroup(int index) const; 239 bool IsResourceLastInGroup(int index) const;
247 240
248 // Returns icon to be used for resource (for example a favicon). 241 // Returns icon to be used for resource (for example a favicon).
249 gfx::ImageSkia GetResourceIcon(int index) const; 242 gfx::ImageSkia GetResourceIcon(int index) const;
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 // All per-Resource values are stored here. 545 // All per-Resource values are stored here.
553 mutable PerResourceCache per_resource_cache_; 546 mutable PerResourceCache per_resource_cache_;
554 547
555 // All per-Process values are stored here. 548 // All per-Process values are stored here.
556 mutable PerProcessCache per_process_cache_; 549 mutable PerProcessCache per_process_cache_;
557 550
558 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 551 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
559 }; 552 };
560 553
561 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 554 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698