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

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

Issue 23523024: Fix and re-enable PrerenderTaskManager test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorder functions Created 7 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TASK_MANAGER_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // don't spend unneeded time updating, unless we have a real need to. 299 // don't spend unneeded time updating, unless we have a real need to.
300 void StartListening(); 300 void StartListening();
301 void StopListening(); 301 void StopListening();
302 302
303 void Clear(); // Removes all items. 303 void Clear(); // Removes all items.
304 304
305 // Sends OnModelChanged() to all observers to inform them of significant 305 // Sends OnModelChanged() to all observers to inform them of significant
306 // changes to the model. 306 // changes to the model.
307 void ModelChanged(); 307 void ModelChanged();
308 308
309 // Updates the values for all rows.
310 void Refresh();
311
309 void NotifyResourceTypeStats( 312 void NotifyResourceTypeStats(
310 base::ProcessId renderer_id, 313 base::ProcessId renderer_id,
311 const WebKit::WebCache::ResourceTypeStats& stats); 314 const WebKit::WebCache::ResourceTypeStats& stats);
312 315
313 void NotifyFPS(base::ProcessId renderer_id, 316 void NotifyFPS(base::ProcessId renderer_id,
314 int routing_id, 317 int routing_id,
315 float fps); 318 float fps);
316 319
317 void NotifyVideoMemoryUsageStats( 320 void NotifyVideoMemoryUsageStats(
318 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats); 321 const content::GPUVideoMemoryUsageStats& video_memory_usage_stats);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 446
444 int routing_id; 447 int routing_id;
445 int byte_count; 448 int byte_count;
446 }; 449 };
447 450
448 ~TaskManagerModel(); 451 ~TaskManagerModel();
449 452
450 // Callback from the timer to refresh. Invokes Refresh() as appropriate. 453 // Callback from the timer to refresh. Invokes Refresh() as appropriate.
451 void RefreshCallback(); 454 void RefreshCallback();
452 455
453 // Updates the values for all rows.
454 void Refresh();
455
456 void RefreshVideoMemoryUsageStats(); 456 void RefreshVideoMemoryUsageStats();
457 457
458 // Returns the network usage (in bytes per seconds) for the specified 458 // Returns the network usage (in bytes per seconds) for the specified
459 // resource. That's the value retrieved at the last timer's tick. 459 // resource. That's the value retrieved at the last timer's tick.
460 int64 GetNetworkUsageForResource(task_manager::Resource* resource) const; 460 int64 GetNetworkUsageForResource(task_manager::Resource* resource) const;
461 461
462 // Called on the UI thread when some bytes are read. 462 // Called on the UI thread when some bytes are read.
463 void BytesRead(BytesReadParam param); 463 void BytesRead(BytesReadParam param);
464 464
465 void MultipleBytesRead(const std::vector<BytesReadParam>* params); 465 void MultipleBytesRead(const std::vector<BytesReadParam>* params);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // All per-Resource values are stored here. 564 // All per-Resource values are stored here.
565 mutable PerResourceCache per_resource_cache_; 565 mutable PerResourceCache per_resource_cache_;
566 566
567 // All per-Process values are stored here. 567 // All per-Process values are stored here.
568 mutable PerProcessCache per_process_cache_; 568 mutable PerProcessCache per_process_cache_;
569 569
570 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 570 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
571 }; 571 };
572 572
573 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 573 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698