| OLD | NEW |
| 1 // Copyright (c) 2010 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> |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 TabContents* GetResourceTabContents(int index) const; | 231 TabContents* GetResourceTabContents(int index) const; |
| 232 | 232 |
| 233 // Returns Extension of given resource or NULL if not applicable. | 233 // Returns Extension of given resource or NULL if not applicable. |
| 234 const Extension* GetResourceExtension(int index) const; | 234 const Extension* GetResourceExtension(int index) const; |
| 235 | 235 |
| 236 // JobObserver methods: | 236 // JobObserver methods: |
| 237 void OnJobAdded(URLRequestJob* job); | 237 void OnJobAdded(URLRequestJob* job); |
| 238 void OnJobRemoved(URLRequestJob* job); | 238 void OnJobRemoved(URLRequestJob* job); |
| 239 void OnJobDone(URLRequestJob* job, const URLRequestStatus& status); | 239 void OnJobDone(URLRequestJob* job, const URLRequestStatus& status); |
| 240 void OnJobRedirect(URLRequestJob* job, const GURL& location, int status_code); | 240 void OnJobRedirect(URLRequestJob* job, const GURL& location, int status_code); |
| 241 void OnBytesRead(URLRequestJob* job, int byte_count); | 241 void OnBytesRead(URLRequestJob* job, const char* buf, int byte_count); |
| 242 | 242 |
| 243 void AddResourceProvider(TaskManager::ResourceProvider* provider); | 243 void AddResourceProvider(TaskManager::ResourceProvider* provider); |
| 244 void RemoveResourceProvider(TaskManager::ResourceProvider* provider); | 244 void RemoveResourceProvider(TaskManager::ResourceProvider* provider); |
| 245 | 245 |
| 246 void AddResource(TaskManager::Resource* resource); | 246 void AddResource(TaskManager::Resource* resource); |
| 247 void RemoveResource(TaskManager::Resource* resource); | 247 void RemoveResource(TaskManager::Resource* resource); |
| 248 | 248 |
| 249 void StartUpdating(); | 249 void StartUpdating(); |
| 250 void StopUpdating(); | 250 void StopUpdating(); |
| 251 | 251 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 // Whether we are currently in the process of updating. | 403 // Whether we are currently in the process of updating. |
| 404 UpdateState update_state_; | 404 UpdateState update_state_; |
| 405 | 405 |
| 406 // A salt lick for the goats. | 406 // A salt lick for the goats. |
| 407 int goat_salt_; | 407 int goat_salt_; |
| 408 | 408 |
| 409 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 409 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 #endif // CHROME_BROWSER_TASK_MANAGER_H_ | 412 #endif // CHROME_BROWSER_TASK_MANAGER_H_ |
| OLD | NEW |