| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/lock.h" | 16 #include "base/lock.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
| 19 #include "base/ref_counted.h" | 19 #include "base/ref_counted.h" |
| 20 #include "base/singleton.h" | 20 #include "base/singleton.h" |
| 21 #include "base/timer.h" | 21 #include "base/timer.h" |
| 22 #include "chrome/browser/renderer_host/web_cache_manager.h" | 22 #include "chrome/browser/renderer_host/web_cache_manager.h" |
| 23 #include "net/url_request/url_request_job_tracker.h" | 23 #include "net/url_request/url_request_job_tracker.h" |
| 24 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" | 24 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" |
| 25 | 25 |
| 26 class Extension; | 26 class Extension; |
| 27 class SkBitmap; | 27 class SkBitmap; |
| 28 class TabContents; | 28 class TabContents; |
| 29 class TaskManager; | |
| 30 class TaskManagerModel; | 29 class TaskManagerModel; |
| 31 | 30 |
| 32 struct BytesReadParam; | |
| 33 | |
| 34 namespace base { | 31 namespace base { |
| 35 class ProcessMetrics; | 32 class ProcessMetrics; |
| 36 } | 33 } |
| 37 | 34 |
| 38 // This class is a singleton. | 35 // This class is a singleton. |
| 39 class TaskManager { | 36 class TaskManager { |
| 40 public: | 37 public: |
| 41 // A resource represents one row in the task manager. | 38 // A resource represents one row in the task manager. |
| 42 // Resources from similar processes are grouped together by the task manager. | 39 // Resources from similar processes are grouped together by the task manager. |
| 43 class Resource { | 40 class Resource { |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 // Whether we are currently in the process of updating. | 403 // Whether we are currently in the process of updating. |
| 407 UpdateState update_state_; | 404 UpdateState update_state_; |
| 408 | 405 |
| 409 // A salt lick for the goats. | 406 // A salt lick for the goats. |
| 410 int goat_salt_; | 407 int goat_salt_; |
| 411 | 408 |
| 412 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 409 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
| 413 }; | 410 }; |
| 414 | 411 |
| 415 #endif // CHROME_BROWSER_TASK_MANAGER_H_ | 412 #endif // CHROME_BROWSER_TASK_MANAGER_H_ |
| OLD | NEW |