| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/lock.h" | 14 #include "base/lock.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
| 17 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
| 18 #include "base/singleton.h" | 18 #include "base/singleton.h" |
| 19 #include "base/timer.h" | 19 #include "base/timer.h" |
| 20 #include "chrome/browser/renderer_host/web_cache_manager.h" | 20 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 21 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
| 22 #include "net/url_request/url_request_job_tracker.h" | 22 #include "net/url_request/url_request_job_tracker.h" |
| 23 #include "testing/gtest/include/gtest/gtest_prod.h" | 23 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 24 #include "webkit/api/public/WebCache.h" | 24 #include "webkit/api/public/WebCache.h" |
| 25 | 25 |
| 26 class Extension; | 26 class Extension; |
| 27 class MessageLoop; | |
| 28 class SkBitmap; | 27 class SkBitmap; |
| 29 class TaskManager; | 28 class TaskManager; |
| 30 class TaskManagerModel; | 29 class TaskManagerModel; |
| 31 | 30 |
| 32 struct BytesReadParam; | 31 struct BytesReadParam; |
| 33 | 32 |
| 34 namespace base { | 33 namespace base { |
| 35 class ProcessMetrics; | 34 class ProcessMetrics; |
| 36 } | 35 } |
| 37 | 36 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // A map that contains the network usage is displayed in the table, in bytes | 360 // A map that contains the network usage is displayed in the table, in bytes |
| 362 // per second. It is computed every time the timer ticks. The Resources are | 361 // per second. It is computed every time the timer ticks. The Resources are |
| 363 // owned by the ResourceProviders. | 362 // owned by the ResourceProviders. |
| 364 ResourceValueMap displayed_network_usage_map_; | 363 ResourceValueMap displayed_network_usage_map_; |
| 365 | 364 |
| 366 // A map that contains the CPU usage (in %) for a process since last refresh. | 365 // A map that contains the CPU usage (in %) for a process since last refresh. |
| 367 CPUUsageMap cpu_usage_map_; | 366 CPUUsageMap cpu_usage_map_; |
| 368 | 367 |
| 369 ObserverList<TaskManagerModelObserver> observer_list_; | 368 ObserverList<TaskManagerModelObserver> observer_list_; |
| 370 | 369 |
| 371 MessageLoop* ui_loop_; | |
| 372 | |
| 373 // Whether we are currently in the process of updating. | 370 // Whether we are currently in the process of updating. |
| 374 UpdateState update_state_; | 371 UpdateState update_state_; |
| 375 | 372 |
| 376 // See design doc at http://go/at-teleporter for more information. | 373 // See design doc at http://go/at-teleporter for more information. |
| 377 static int goats_teleported_; | 374 static int goats_teleported_; |
| 378 | 375 |
| 379 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 376 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
| 380 }; | 377 }; |
| 381 | 378 |
| 382 #endif // CHROME_BROWSER_TASK_MANAGER_H_ | 379 #endif // CHROME_BROWSER_TASK_MANAGER_H_ |
| OLD | NEW |