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 | |
328 // Returns true if resource for the given row can be inspected using developer | 325 // Returns true if resource for the given row can be inspected using developer |
329 // tools. | 326 // tools. |
330 bool CanInspect(int index) const; | 327 bool CanInspect(int index) const; |
331 | 328 |
332 // Invokes or reveals developer tools window for resource in the given row. | 329 // Invokes or reveals developer tools window for resource in the given row. |
333 void Inspect(int index) const; | 330 void Inspect(int index) const; |
334 | 331 |
335 // See design doc at http://go/at-teleporter for more information. | 332 // See design doc at http://go/at-teleporter for more information. |
336 int GetGoatsTeleported(int index) const; | 333 int GetGoatsTeleported(int index) const; |
337 | 334 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 // A salt lick for the goats. | 527 // A salt lick for the goats. |
531 int goat_salt_; | 528 int goat_salt_; |
532 | 529 |
533 // Resource identifier that is unique within single session. | 530 // Resource identifier that is unique within single session. |
534 int last_unique_id_; | 531 int last_unique_id_; |
535 | 532 |
536 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 533 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
537 }; | 534 }; |
538 | 535 |
539 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 536 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
OLD | NEW |