Home | History | Annotate | Download | only in task_manager

Lines Matching refs:Resource

38   // A resource represents one row in the task manager.
40 class Resource {
42 virtual ~Resource() {}
73 // Return extension associated with the resource, or NULL
85 // Whether this resource does report the network usage accurately.
105 // Returns true if this resource is not visible to the user because it lives
112 // to receive resource creation/termination notifications with a call to
113 // StartUpdating(). At that point, the resource provider should call
116 // The provider remains the owner of the resource objects and is responsible
124 // Should return the resource associated to the specified ids, or NULL if
125 // the resource does not belong to this provider.
126 virtual TaskManager::Resource* GetResource(int process_id,
150 // These methods are invoked by the resource providers to add/remove resources
154 void AddResource(Resource* resource);
155 void RemoveResource(Resource* resource);
159 // Invoked when a change to a resource has occurred that should cause any
161 // a background resource in a process). Results in all observers receiving
223 // Methods to return raw resource information.
228 // Methods to return formatted resource information.
244 // resource index. Caches the result since this calculation can take time on
249 // resource index. Caches the result since this calculation can take time on
254 // resource index.
258 // resource for the given row isn't a renderer.
264 // Returns true if the resource is first in its group (resources
268 // Returns true if the resource runs in the background (not visible to the
272 // Returns icon to be used for resource (for example a favicon).
275 // Returns a pair (start, length) of the group range of resource.
283 // Returns process handle for given resource.
286 // Returns the type of the given resource.
287 TaskManager::Resource::Type GetResourceType(int index) const;
289 // Returns TabContents of given resource or NULL if not applicable.
292 // Returns Extension of given resource or NULL if not applicable.
307 void AddResource(TaskManager::Resource* resource);
308 void RemoveResource(TaskManager::Resource* resource);
362 typedef std::vector<TaskManager::Resource*> ResourceList;
367 typedef std::map<TaskManager::Resource*, int64> ResourceValueMap;
374 void AddItem(TaskManager::Resource* resource, bool notify_table);
375 void RemoveItem(TaskManager::Resource* resource);
382 // resource. That's the value retrieved at the last timer's tick.
383 int64 GetNetworkUsageForResource(TaskManager::Resource* resource) const;
389 // the passed |resource|. -1 means the information is not available for that
390 // resource.
391 int64 GetNetworkUsage(TaskManager::Resource* resource) const;
394 // |resource|.
395 double GetCPUUsage(TaskManager::Resource* resource) const;
411 // Adds a resource provider to be managed.