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

Side by Side Diff: chrome/browser/render_widget_helper.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/render_widget_helper.h" 5 #include "chrome/browser/render_widget_helper.h"
6 6
7 #include "base/thread.h" 7 #include "base/thread.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/render_process_host.h" 9 #include "chrome/browser/render_process_host.h"
10 #include "chrome/browser/resource_dispatcher_host.h" 10 #include "chrome/browser/resource_dispatcher_host.h"
11 11
12 using base::TimeDelta;
13 using base::TimeTicks;
14
12 // A Task used with InvokeLater that we hold a pointer to in pending_paints_. 15 // A Task used with InvokeLater that we hold a pointer to in pending_paints_.
13 // Instances are deleted by MessageLoop after it calls their Run method. 16 // Instances are deleted by MessageLoop after it calls their Run method.
14 class RenderWidgetHelper::PaintMsgProxy : public Task { 17 class RenderWidgetHelper::PaintMsgProxy : public Task {
15 public: 18 public:
16 explicit PaintMsgProxy(RenderWidgetHelper* h, const IPC::Message& m) 19 explicit PaintMsgProxy(RenderWidgetHelper* h, const IPC::Message& m)
17 : helper(h), 20 : helper(h),
18 message(m), 21 message(m),
19 cancelled(false) { 22 cancelled(false) {
20 } 23 }
21 24
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 ui_loop_->PostTask(FROM_HERE, NewRunnableMethod( 224 ui_loop_->PostTask(FROM_HERE, NewRunnableMethod(
222 this, &RenderWidgetHelper::OnSimulateReceivedMessage, msg)); 225 this, &RenderWidgetHelper::OnSimulateReceivedMessage, msg));
223 } 226 }
224 227
225 void RenderWidgetHelper::OnSimulateReceivedMessage( 228 void RenderWidgetHelper::OnSimulateReceivedMessage(
226 const IPC::Message& message) { 229 const IPC::Message& message) {
227 RenderProcessHost* host = RenderProcessHost::FromID(render_process_id_); 230 RenderProcessHost* host = RenderProcessHost::FromID(render_process_id_);
228 if (host) 231 if (host)
229 host->OnMessageReceived(message); 232 host->OnMessageReceived(message);
230 } 233 }
231
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698