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(net::URLRequestJob* job); | 300 virtual void OnJobAdded(net::URLRequestJob* job); |
301 void OnJobRemoved(net::URLRequestJob* job); | 301 virtual void OnJobRemoved(net::URLRequestJob* job); |
302 void OnJobDone(net::URLRequestJob* job, const URLRequestStatus& status); | 302 virtual void OnJobDone(net::URLRequestJob* job, |
303 void OnJobRedirect(net::URLRequestJob* job, | 303 const URLRequestStatus& status); |
304 const GURL& location, | 304 virtual void OnJobRedirect(net::URLRequestJob* job, |
305 int status_code); | 305 const GURL& location, |
306 void OnBytesRead(net::URLRequestJob* job, const char* buf, int byte_count); | 306 int status_code); |
| 307 virtual void OnBytesRead(net::URLRequestJob* job, |
| 308 const char* buf, |
| 309 int byte_count); |
307 | 310 |
308 void AddResourceProvider(TaskManager::ResourceProvider* provider); | 311 void AddResourceProvider(TaskManager::ResourceProvider* provider); |
309 void RemoveResourceProvider(TaskManager::ResourceProvider* provider); | 312 void RemoveResourceProvider(TaskManager::ResourceProvider* provider); |
310 | 313 |
311 void AddResource(TaskManager::Resource* resource); | 314 void AddResource(TaskManager::Resource* resource); |
312 void RemoveResource(TaskManager::Resource* resource); | 315 void RemoveResource(TaskManager::Resource* resource); |
313 | 316 |
314 void StartUpdating(); | 317 void StartUpdating(); |
315 void StopUpdating(); | 318 void StopUpdating(); |
316 | 319 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 // Whether we are currently in the process of updating. | 459 // Whether we are currently in the process of updating. |
457 UpdateState update_state_; | 460 UpdateState update_state_; |
458 | 461 |
459 // A salt lick for the goats. | 462 // A salt lick for the goats. |
460 int goat_salt_; | 463 int goat_salt_; |
461 | 464 |
462 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 465 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
463 }; | 466 }; |
464 | 467 |
465 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 468 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
OLD | NEW |