OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 bool GetFPS(int index, float* result) const; | 315 bool GetFPS(int index, float* result) const; |
316 | 316 |
317 // Gets the sqlite memory (in byte). Return false if the resource for the | 317 // Gets the sqlite memory (in byte). Return false if the resource for the |
318 // given row doesn't report information. | 318 // given row doesn't report information. |
319 bool GetSqliteMemoryUsedBytes(int index, size_t* result) const; | 319 bool GetSqliteMemoryUsedBytes(int index, size_t* result) const; |
320 | 320 |
321 // Gets the amount of memory allocated for javascript. Returns false if the | 321 // Gets the amount of memory allocated for javascript. Returns false if the |
322 // resource for the given row isn't a renderer. | 322 // resource for the given row isn't a renderer. |
323 bool GetV8Memory(int index, size_t* result) const; | 323 bool GetV8Memory(int index, size_t* result) const; |
324 | 324 |
| 325 // Returns true if resource for the given row can be activated. |
| 326 bool CanActivate(int index) const; |
| 327 |
325 // Returns true if resource for the given row can be inspected using developer | 328 // Returns true if resource for the given row can be inspected using developer |
326 // tools. | 329 // tools. |
327 bool CanInspect(int index) const; | 330 bool CanInspect(int index) const; |
328 | 331 |
329 // Invokes or reveals developer tools window for resource in the given row. | 332 // Invokes or reveals developer tools window for resource in the given row. |
330 void Inspect(int index) const; | 333 void Inspect(int index) const; |
331 | 334 |
332 // See design doc at http://go/at-teleporter for more information. | 335 // See design doc at http://go/at-teleporter for more information. |
333 int GetGoatsTeleported(int index) const; | 336 int GetGoatsTeleported(int index) const; |
334 | 337 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // A salt lick for the goats. | 530 // A salt lick for the goats. |
528 int goat_salt_; | 531 int goat_salt_; |
529 | 532 |
530 // Resource identifier that is unique within single session. | 533 // Resource identifier that is unique within single session. |
531 int last_unique_id_; | 534 int last_unique_id_; |
532 | 535 |
533 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 536 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
534 }; | 537 }; |
535 | 538 |
536 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 539 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
OLD | NEW |