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_RENDERER_RESOURCE_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/task_manager/resource_provider.h" | 9 #include "chrome/browser/task_manager/resource_provider.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 virtual Type GetType() const OVERRIDE; | 29 virtual Type GetType() const OVERRIDE; |
30 virtual int GetRoutingID() const OVERRIDE; | 30 virtual int GetRoutingID() const OVERRIDE; |
31 | 31 |
32 virtual bool ReportsCacheStats() const OVERRIDE; | 32 virtual bool ReportsCacheStats() const OVERRIDE; |
33 virtual blink::WebCache::ResourceTypeStats GetWebCoreCacheStats() const | 33 virtual blink::WebCache::ResourceTypeStats GetWebCoreCacheStats() const |
34 OVERRIDE; | 34 OVERRIDE; |
35 virtual bool ReportsV8MemoryStats() const OVERRIDE; | 35 virtual bool ReportsV8MemoryStats() const OVERRIDE; |
36 virtual size_t GetV8MemoryAllocated() const OVERRIDE; | 36 virtual size_t GetV8MemoryAllocated() const OVERRIDE; |
37 virtual size_t GetV8MemoryUsed() const OVERRIDE; | 37 virtual size_t GetV8MemoryUsed() const OVERRIDE; |
38 | 38 |
39 // RenderResources are always inspectable. | |
40 virtual bool CanInspect() const OVERRIDE; | |
41 virtual void Inspect() const OVERRIDE; | |
42 | |
43 // RenderResources always provide the network usage. | 39 // RenderResources always provide the network usage. |
44 virtual bool SupportNetworkUsage() const OVERRIDE; | 40 virtual bool SupportNetworkUsage() const OVERRIDE; |
45 virtual void SetSupportNetworkUsage() OVERRIDE { } | 41 virtual void SetSupportNetworkUsage() OVERRIDE { } |
46 | 42 |
47 virtual void Refresh() OVERRIDE; | 43 virtual void Refresh() OVERRIDE; |
48 | 44 |
49 virtual void NotifyResourceTypeStats( | 45 virtual void NotifyResourceTypeStats( |
50 const blink::WebCache::ResourceTypeStats& stats) OVERRIDE; | 46 const blink::WebCache::ResourceTypeStats& stats) OVERRIDE; |
51 | 47 |
52 virtual void NotifyV8HeapStats(size_t v8_memory_allocated, | 48 virtual void NotifyV8HeapStats(size_t v8_memory_allocated, |
(...skipping 20 matching lines...) Expand all Loading... |
73 size_t v8_memory_allocated_; | 69 size_t v8_memory_allocated_; |
74 size_t v8_memory_used_; | 70 size_t v8_memory_used_; |
75 bool pending_v8_memory_allocated_update_; | 71 bool pending_v8_memory_allocated_update_; |
76 | 72 |
77 DISALLOW_COPY_AND_ASSIGN(RendererResource); | 73 DISALLOW_COPY_AND_ASSIGN(RendererResource); |
78 }; | 74 }; |
79 | 75 |
80 } // namespace task_manager | 76 } // namespace task_manager |
81 | 77 |
82 #endif // CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_ | 78 #endif // CHROME_BROWSER_TASK_MANAGER_RENDERER_RESOURCE_H_ |
OLD | NEW |