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

Side by Side Diff: content/renderer/renderer_main.cc

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 #include "base/base_switches.h" 5 #include "base/base_switches.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/debug/debugger.h" 7 #include "base/debug/debugger.h"
8 #include "base/debug/stack_trace.h" 8 #include "base/debug/stack_trace.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // This is a simplified version of the browser Jankometer, which measures 74 // This is a simplified version of the browser Jankometer, which measures
75 // the processing time of tasks on the render thread. 75 // the processing time of tasks on the render thread.
76 class RendererMessageLoopObserver : public base::MessageLoop::TaskObserver { 76 class RendererMessageLoopObserver : public base::MessageLoop::TaskObserver {
77 public: 77 public:
78 RendererMessageLoopObserver() 78 RendererMessageLoopObserver()
79 : process_times_(base::Histogram::FactoryGet( 79 : process_times_(base::Histogram::FactoryGet(
80 "Chrome.ProcMsgL RenderThread", 80 "Chrome.ProcMsgL RenderThread",
81 1, 3600000, 50, base::Histogram::kUmaTargetedHistogramFlag)) {} 81 1, 3600000, 50, base::Histogram::kUmaTargetedHistogramFlag)) {}
82 virtual ~RendererMessageLoopObserver() {} 82 virtual ~RendererMessageLoopObserver() {}
83 83
84 virtual void WillProcessTask(const base::PendingTask& pending_task) OVERRIDE { 84 virtual void WillProcessTask(const base::PendingTask& pending_task) override {
85 begin_process_message_ = base::TimeTicks::Now(); 85 begin_process_message_ = base::TimeTicks::Now();
86 } 86 }
87 87
88 virtual void DidProcessTask(const base::PendingTask& pending_task) OVERRIDE { 88 virtual void DidProcessTask(const base::PendingTask& pending_task) override {
89 if (!begin_process_message_.is_null()) 89 if (!begin_process_message_.is_null())
90 process_times_->AddTime(base::TimeTicks::Now() - begin_process_message_); 90 process_times_->AddTime(base::TimeTicks::Now() - begin_process_message_);
91 } 91 }
92 92
93 private: 93 private:
94 base::TimeTicks begin_process_message_; 94 base::TimeTicks begin_process_message_;
95 base::HistogramBase* const process_times_; 95 base::HistogramBase* const process_times_;
96 DISALLOW_COPY_AND_ASSIGN(RendererMessageLoopObserver); 96 DISALLOW_COPY_AND_ASSIGN(RendererMessageLoopObserver);
97 }; 97 };
98 98
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 base::MessageLoop::current()->Run(); 229 base::MessageLoop::current()->Run();
230 TRACE_EVENT_END_ETW("RendererMain.START_MSG_LOOP", 0, 0); 230 TRACE_EVENT_END_ETW("RendererMain.START_MSG_LOOP", 0, 0);
231 } 231 }
232 } 232 }
233 platform.PlatformUninitialize(); 233 platform.PlatformUninitialize();
234 TRACE_EVENT_END_ETW("RendererMain", 0, ""); 234 TRACE_EVENT_END_ETW("RendererMain", 0, "");
235 return 0; 235 return 0;
236 } 236 }
237 237
238 } // namespace content 238 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_clipboard_client.cc ('k') | content/renderer/renderer_webapplicationcachehost_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698