Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(964)

Side by Side Diff: chrome/browser/task_manager/resource_provider.h

Issue 319953002: Task Manager: Remove dead FPS code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual base::string16 GetProfileName() const = 0; 60 virtual base::string16 GetProfileName() const = 0;
61 virtual gfx::ImageSkia GetIcon() const = 0; 61 virtual gfx::ImageSkia GetIcon() const = 0;
62 virtual base::ProcessHandle GetProcess() const = 0; 62 virtual base::ProcessHandle GetProcess() const = 0;
63 virtual int GetUniqueChildProcessId() const = 0; 63 virtual int GetUniqueChildProcessId() const = 0;
64 virtual Type GetType() const = 0; 64 virtual Type GetType() const = 0;
65 virtual int GetRoutingID() const; 65 virtual int GetRoutingID() const;
66 66
67 virtual bool ReportsCacheStats() const; 67 virtual bool ReportsCacheStats() const;
68 virtual blink::WebCache::ResourceTypeStats GetWebCoreCacheStats() const; 68 virtual blink::WebCache::ResourceTypeStats GetWebCoreCacheStats() const;
69 69
70 virtual bool ReportsFPS() const;
71 virtual float GetFPS() const;
72
73 virtual bool ReportsSqliteMemoryUsed() const; 70 virtual bool ReportsSqliteMemoryUsed() const;
74 virtual size_t SqliteMemoryUsedBytes() const; 71 virtual size_t SqliteMemoryUsedBytes() const;
75 72
76 virtual bool ReportsV8MemoryStats() const; 73 virtual bool ReportsV8MemoryStats() const;
77 virtual size_t GetV8MemoryAllocated() const; 74 virtual size_t GetV8MemoryAllocated() const;
78 virtual size_t GetV8MemoryUsed() const; 75 virtual size_t GetV8MemoryUsed() const;
79 76
80 // Returns true if this resource can be inspected using developer tools. 77 // Returns true if this resource can be inspected using developer tools.
81 virtual bool CanInspect() const; 78 virtual bool CanInspect() const;
82 79
(...skipping 15 matching lines...) Expand all
98 // Called when some bytes have been read and support_network_usage returns 95 // Called when some bytes have been read and support_network_usage returns
99 // false (meaning we do have network usage support). 96 // false (meaning we do have network usage support).
100 virtual void SetSupportNetworkUsage() = 0; 97 virtual void SetSupportNetworkUsage() = 0;
101 98
102 // The TaskManagerModel periodically refreshes its data and call this 99 // The TaskManagerModel periodically refreshes its data and call this
103 // on all live resources. 100 // on all live resources.
104 virtual void Refresh() {} 101 virtual void Refresh() {}
105 102
106 virtual void NotifyResourceTypeStats( 103 virtual void NotifyResourceTypeStats(
107 const blink::WebCache::ResourceTypeStats& stats) {} 104 const blink::WebCache::ResourceTypeStats& stats) {}
108 virtual void NotifyFPS(float fps) {}
109 virtual void NotifyV8HeapStats(size_t v8_memory_allocated, 105 virtual void NotifyV8HeapStats(size_t v8_memory_allocated,
110 size_t v8_memory_used) {} 106 size_t v8_memory_used) {}
111 107
112 static const char* GetResourceTypeAsString(const Type type) { 108 static const char* GetResourceTypeAsString(const Type type) {
113 switch (type) { 109 switch (type) {
114 TASKMANAGER_RESOURCE_TYPE_LIST(TASKMANAGER_RESOURCE_TYPE_LIST_AS_STRING) 110 TASKMANAGER_RESOURCE_TYPE_LIST(TASKMANAGER_RESOURCE_TYPE_LIST_AS_STRING)
115 default: return "UNKNOWN"; 111 default: return "UNKNOWN";
116 } 112 }
117 } 113 }
118 114
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 147
152 protected: 148 protected:
153 friend class base::RefCountedThreadSafe<ResourceProvider>; 149 friend class base::RefCountedThreadSafe<ResourceProvider>;
154 150
155 virtual ~ResourceProvider() {} 151 virtual ~ResourceProvider() {}
156 }; 152 };
157 153
158 } // namespace task_manager 154 } // namespace task_manager
159 155
160 #endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_ 156 #endif // CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/renderer_resource.cc ('k') | chrome/browser/task_manager/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698