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