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

Unified Diff: content/renderer/renderer_main.cc

Issue 12161002: MessageLoop's RUN method will pass a const ref to PendingTask when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_watchdog_thread.cc ('k') | media/audio/mac/audio_device_listener_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_main.cc
===================================================================
--- content/renderer/renderer_main.cc (revision 180270)
+++ content/renderer/renderer_main.cc (working copy)
@@ -16,6 +16,7 @@
#include "base/metrics/statistics_recorder.h"
#include "base/metrics/stats_counters.h"
#include "base/path_service.h"
+#include "base/pending_task.h"
#include "base/process_util.h"
#include "base/string_util.h"
#include "base/system_monitor/system_monitor.h"
@@ -70,11 +71,11 @@
1, 3600000, 50, base::Histogram::kUmaTargetedHistogramFlag)) {}
virtual ~RendererMessageLoopObserver() {}
- virtual void WillProcessTask(base::TimeTicks time_posted) {
+ virtual void WillProcessTask(const base::PendingTask& pending_task) OVERRIDE {
begin_process_message_ = base::TimeTicks::Now();
}
- virtual void DidProcessTask(base::TimeTicks time_posted) {
+ virtual void DidProcessTask(const base::PendingTask& pending_task) OVERRIDE {
if (!begin_process_message_.is_null())
process_times_->AddTime(base::TimeTicks::Now() - begin_process_message_);
}
@@ -91,9 +92,10 @@
MemoryObserver() {}
virtual ~MemoryObserver() {}
- virtual void WillProcessTask(base::TimeTicks time_posted) OVERRIDE {}
+ virtual void WillProcessTask(const base::PendingTask& pending_task) OVERRIDE {
+ }
- virtual void DidProcessTask(base::TimeTicks time_posted) OVERRIDE {
+ virtual void DidProcessTask(const base::PendingTask& pending_task) OVERRIDE {
HISTOGRAM_MEMORY_KB("Memory.RendererUsed", webkit_glue::MemoryUsageKB());
}
private:
« no previous file with comments | « content/gpu/gpu_watchdog_thread.cc ('k') | media/audio/mac/audio_device_listener_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698