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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual bool ReportsFPS() const; | 70 virtual bool ReportsFPS() const; |
71 virtual float GetFPS() const; | 71 virtual float GetFPS() const; |
72 | 72 |
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 virtual bool ReportsV8MemoryStats() const; | 76 virtual bool ReportsV8MemoryStats() const; |
77 virtual size_t GetV8MemoryAllocated() const; | 77 virtual size_t GetV8MemoryAllocated() const; |
78 virtual size_t GetV8MemoryUsed() const; | 78 virtual size_t GetV8MemoryUsed() const; |
79 | 79 |
80 virtual int GetNaClDebugStubPort() const; | |
81 | |
82 // Returns true if this resource can be inspected using developer tools. | 80 // Returns true if this resource can be inspected using developer tools. |
83 virtual bool CanInspect() const; | 81 virtual bool CanInspect() const; |
84 | 82 |
85 // Invokes or reveals developer tools window for this resource. | 83 // Invokes or reveals developer tools window for this resource. |
86 virtual void Inspect() const {} | 84 virtual void Inspect() const {} |
87 | 85 |
88 // A helper function for ActivateProcess when selected resource refers | 86 // A helper function for ActivateProcess when selected resource refers |
89 // to a Tab or other window containing web contents. Returns NULL by | 87 // to a Tab or other window containing web contents. Returns NULL by |
90 // default because not all resources have an associated web contents. | 88 // default because not all resources have an associated web contents. |
91 virtual content::WebContents* GetWebContents() const; | 89 virtual content::WebContents* GetWebContents() const; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 151 |
154 protected: | 152 protected: |
155 friend class base::RefCountedThreadSafe<ResourceProvider>; | 153 friend class base::RefCountedThreadSafe<ResourceProvider>; |
156 | 154 |
157 virtual ~ResourceProvider() {} | 155 virtual ~ResourceProvider() {} |
158 }; | 156 }; |
159 | 157 |
160 } // namespace task_manager | 158 } // namespace task_manager |
161 | 159 |
162 #endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ | 160 #endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ |
OLD | NEW |