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

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

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh Created 7 years, 6 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 | Annotate | Revision Log
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 "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 if (notify_webkit_of_modal_loop) 540 if (notify_webkit_of_modal_loop)
541 WebView::didExitModalLoop(); 541 WebView::didExitModalLoop();
542 542
543 if (suspend_webkit_shared_timer) 543 if (suspend_webkit_shared_timer)
544 webkit_platform_support_->ResumeSharedTimer(); 544 webkit_platform_support_->ResumeSharedTimer();
545 } 545 }
546 546
547 return rv; 547 return rv;
548 } 548 }
549 549
550 MessageLoop* RenderThreadImpl::GetMessageLoop() { 550 base::MessageLoop* RenderThreadImpl::GetMessageLoop() {
551 return message_loop(); 551 return message_loop();
552 } 552 }
553 553
554 IPC::SyncChannel* RenderThreadImpl::GetChannel() { 554 IPC::SyncChannel* RenderThreadImpl::GetChannel() {
555 return channel(); 555 return channel();
556 } 556 }
557 557
558 std::string RenderThreadImpl::GetLocale() { 558 std::string RenderThreadImpl::GetLocale() {
559 // The browser process should have passed the locale to the renderer via the 559 // The browser process should have passed the locale to the renderer via the
560 // --lang command line flag. 560 // --lang command line flag.
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 1077
1078 bool RenderThreadImpl::IsMainThread() { 1078 bool RenderThreadImpl::IsMainThread() {
1079 return !!current(); 1079 return !!current();
1080 } 1080 }
1081 1081
1082 bool RenderThreadImpl::IsIOThread() { 1082 bool RenderThreadImpl::IsIOThread() {
1083 return base::MessageLoop::current() == 1083 return base::MessageLoop::current() ==
1084 ChildProcess::current()->io_message_loop(); 1084 ChildProcess::current()->io_message_loop();
1085 } 1085 }
1086 1086
1087 MessageLoop* RenderThreadImpl::GetMainLoop() { 1087 base::MessageLoop* RenderThreadImpl::GetMainLoop() {
1088 return message_loop(); 1088 return message_loop();
1089 } 1089 }
1090 1090
1091 scoped_refptr<base::MessageLoopProxy> RenderThreadImpl::GetIOLoopProxy() { 1091 scoped_refptr<base::MessageLoopProxy> RenderThreadImpl::GetIOLoopProxy() {
1092 return ChildProcess::current()->io_message_loop_proxy(); 1092 return ChildProcess::current()->io_message_loop_proxy();
1093 } 1093 }
1094 1094
1095 base::WaitableEvent* RenderThreadImpl::GetShutDownEvent() { 1095 base::WaitableEvent* RenderThreadImpl::GetShutDownEvent() {
1096 return ChildProcess::current()->GetShutDownEvent(); 1096 return ChildProcess::current()->GetShutDownEvent();
1097 } 1097 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 1324
1325 void RenderThreadImpl::SetFlingCurveParameters( 1325 void RenderThreadImpl::SetFlingCurveParameters(
1326 const std::vector<float>& new_touchpad, 1326 const std::vector<float>& new_touchpad,
1327 const std::vector<float>& new_touchscreen) { 1327 const std::vector<float>& new_touchscreen) {
1328 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, 1328 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1329 new_touchscreen); 1329 new_touchscreen);
1330 1330
1331 } 1331 }
1332 1332
1333 } // namespace content 1333 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | device/bluetooth/bluetooth_profile_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698