| OLD | NEW | 
|    1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 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> | 
|   11 #include <utility> |   11 #include <utility> | 
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  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   virtual void OnJobAdded(net::URLRequestJob* job); |  300   virtual void OnJobAdded(net::URLRequestJob* job); | 
|  301   virtual void OnJobRemoved(net::URLRequestJob* job); |  301   virtual void OnJobRemoved(net::URLRequestJob* job); | 
|  302   virtual void OnJobDone(net::URLRequestJob* job, |  302   virtual void OnJobDone(net::URLRequestJob* job, | 
|  303                          const URLRequestStatus& status); |  303                          const net::URLRequestStatus& status); | 
|  304   virtual void OnJobRedirect(net::URLRequestJob* job, |  304   virtual void OnJobRedirect(net::URLRequestJob* job, | 
|  305                              const GURL& location, |  305                              const GURL& location, | 
|  306                              int status_code); |  306                              int status_code); | 
|  307   virtual void OnBytesRead(net::URLRequestJob* job, |  307   virtual void OnBytesRead(net::URLRequestJob* job, | 
|  308                            const char* buf, |  308                            const char* buf, | 
|  309                            int byte_count); |  309                            int byte_count); | 
|  310  |  310  | 
|  311   void AddResourceProvider(TaskManager::ResourceProvider* provider); |  311   void AddResourceProvider(TaskManager::ResourceProvider* provider); | 
|  312   void RemoveResourceProvider(TaskManager::ResourceProvider* provider); |  312   void RemoveResourceProvider(TaskManager::ResourceProvider* provider); | 
|  313  |  313  | 
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  459   // Whether we are currently in the process of updating. |  459   // Whether we are currently in the process of updating. | 
|  460   UpdateState update_state_; |  460   UpdateState update_state_; | 
|  461  |  461  | 
|  462   // A salt lick for the goats. |  462   // A salt lick for the goats. | 
|  463   int goat_salt_; |  463   int goat_salt_; | 
|  464  |  464  | 
|  465   DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |  465   DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 
|  466 }; |  466 }; | 
|  467  |  467  | 
|  468 #endif  // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |  468 #endif  // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 
| OLD | NEW |