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_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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 // Returns the type of the given resource. | 290 // Returns the type of the given resource. |
291 TaskManager::Resource::Type GetResourceType(int index) const; | 291 TaskManager::Resource::Type GetResourceType(int index) const; |
292 | 292 |
293 // Returns TabContents of given resource or NULL if not applicable. | 293 // Returns TabContents of given resource or NULL if not applicable. |
294 TabContents* GetResourceTabContents(int index) const; | 294 TabContents* GetResourceTabContents(int index) const; |
295 | 295 |
296 // Returns Extension of given resource or NULL if not applicable. | 296 // Returns Extension of given resource or NULL if not applicable. |
297 const Extension* GetResourceExtension(int index) const; | 297 const Extension* GetResourceExtension(int index) const; |
298 | 298 |
299 // JobObserver methods: | 299 // JobObserver methods: |
300 void OnJobAdded(URLRequestJob* job); | 300 void OnJobAdded(net::URLRequestJob* job); |
301 void OnJobRemoved(URLRequestJob* job); | 301 void OnJobRemoved(net::URLRequestJob* job); |
302 void OnJobDone(URLRequestJob* job, const URLRequestStatus& status); | 302 void OnJobDone(net::URLRequestJob* job, const URLRequestStatus& status); |
303 void OnJobRedirect(URLRequestJob* job, const GURL& location, int status_code); | 303 void OnJobRedirect(net::URLRequestJob* job, |
304 void OnBytesRead(URLRequestJob* job, const char* buf, int byte_count); | 304 const GURL& location, |
| 305 int status_code); |
| 306 void OnBytesRead(net::URLRequestJob* job, const char* buf, int byte_count); |
305 | 307 |
306 void AddResourceProvider(TaskManager::ResourceProvider* provider); | 308 void AddResourceProvider(TaskManager::ResourceProvider* provider); |
307 void RemoveResourceProvider(TaskManager::ResourceProvider* provider); | 309 void RemoveResourceProvider(TaskManager::ResourceProvider* provider); |
308 | 310 |
309 void AddResource(TaskManager::Resource* resource); | 311 void AddResource(TaskManager::Resource* resource); |
310 void RemoveResource(TaskManager::Resource* resource); | 312 void RemoveResource(TaskManager::Resource* resource); |
311 | 313 |
312 void StartUpdating(); | 314 void StartUpdating(); |
313 void StopUpdating(); | 315 void StopUpdating(); |
314 | 316 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 // Whether we are currently in the process of updating. | 456 // Whether we are currently in the process of updating. |
455 UpdateState update_state_; | 457 UpdateState update_state_; |
456 | 458 |
457 // A salt lick for the goats. | 459 // A salt lick for the goats. |
458 int goat_salt_; | 460 int goat_salt_; |
459 | 461 |
460 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 462 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
461 }; | 463 }; |
462 | 464 |
463 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 465 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
OLD | NEW |