| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RESOURCE_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual bool ReportsSqliteMemoryUsed() const; | 73 virtual bool ReportsSqliteMemoryUsed() const; |
| 74 virtual size_t SqliteMemoryUsedBytes() const; | 74 virtual size_t SqliteMemoryUsedBytes() const; |
| 75 | 75 |
| 76 // Return extension associated with the resource, or NULL if not applicable. | 76 // Return extension associated with the resource, or NULL if not applicable. |
| 77 virtual const extensions::Extension* GetExtension() const; | 77 virtual const extensions::Extension* GetExtension() const; |
| 78 | 78 |
| 79 virtual bool ReportsV8MemoryStats() const; | 79 virtual bool ReportsV8MemoryStats() const; |
| 80 virtual size_t GetV8MemoryAllocated() const; | 80 virtual size_t GetV8MemoryAllocated() const; |
| 81 virtual size_t GetV8MemoryUsed() const; | 81 virtual size_t GetV8MemoryUsed() const; |
| 82 | 82 |
| 83 virtual int GetNaClDebugStubPort() const; |
| 84 |
| 83 // Returns true if this resource can be inspected using developer tools. | 85 // Returns true if this resource can be inspected using developer tools. |
| 84 virtual bool CanInspect() const; | 86 virtual bool CanInspect() const; |
| 85 | 87 |
| 86 // Invokes or reveals developer tools window for this resource. | 88 // Invokes or reveals developer tools window for this resource. |
| 87 virtual void Inspect() const {} | 89 virtual void Inspect() const {} |
| 88 | 90 |
| 89 // A helper function for ActivateProcess when selected resource refers | 91 // A helper function for ActivateProcess when selected resource refers |
| 90 // to a Tab or other window containing web contents. Returns NULL by | 92 // to a Tab or other window containing web contents. Returns NULL by |
| 91 // default because not all resources have an associated web contents. | 93 // default because not all resources have an associated web contents. |
| 92 virtual content::WebContents* GetWebContents() const; | 94 virtual content::WebContents* GetWebContents() const; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 167 |
| 166 protected: | 168 protected: |
| 167 friend class base::RefCountedThreadSafe<ResourceProvider>; | 169 friend class base::RefCountedThreadSafe<ResourceProvider>; |
| 168 | 170 |
| 169 virtual ~ResourceProvider() {} | 171 virtual ~ResourceProvider() {} |
| 170 }; | 172 }; |
| 171 | 173 |
| 172 } // namespace task_manager | 174 } // namespace task_manager |
| 173 | 175 |
| 174 #endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ | 176 #endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ |
| OLD | NEW |