OLD | NEW |
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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() { | 647 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() { |
648 return sync_message_filter(); | 648 return sync_message_filter(); |
649 } | 649 } |
650 | 650 |
651 scoped_refptr<base::MessageLoopProxy> | 651 scoped_refptr<base::MessageLoopProxy> |
652 RenderThreadImpl::GetIOMessageLoopProxy() { | 652 RenderThreadImpl::GetIOMessageLoopProxy() { |
653 return ChildProcess::current()->io_message_loop_proxy(); | 653 return ChildProcess::current()->io_message_loop_proxy(); |
654 } | 654 } |
655 | 655 |
656 void RenderThreadImpl::AddRoute(int32 routing_id, IPC::Listener* listener) { | 656 void RenderThreadImpl::AddRoute(int32 routing_id, IPC::Listener* listener) { |
657 ChildThread::AddRoute(routing_id, listener); | 657 ChildThread::GetRouter()->AddRoute(routing_id, listener); |
658 } | 658 } |
659 | 659 |
660 void RenderThreadImpl::RemoveRoute(int32 routing_id) { | 660 void RenderThreadImpl::RemoveRoute(int32 routing_id) { |
661 ChildThread::RemoveRoute(routing_id); | 661 ChildThread::GetRouter()->RemoveRoute(routing_id); |
662 } | 662 } |
663 | 663 |
664 int RenderThreadImpl::GenerateRoutingID() { | 664 int RenderThreadImpl::GenerateRoutingID() { |
665 int routing_id = MSG_ROUTING_NONE; | 665 int routing_id = MSG_ROUTING_NONE; |
666 Send(new ViewHostMsg_GenerateRoutingID(&routing_id)); | 666 Send(new ViewHostMsg_GenerateRoutingID(&routing_id)); |
667 return routing_id; | 667 return routing_id; |
668 } | 668 } |
669 | 669 |
670 void RenderThreadImpl::AddFilter(IPC::ChannelProxy::MessageFilter* filter) { | 670 void RenderThreadImpl::AddFilter(IPC::ChannelProxy::MessageFilter* filter) { |
671 channel()->AddFilter(filter); | 671 channel()->AddFilter(filter); |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1468 hidden_widget_count_--; | 1468 hidden_widget_count_--; |
1469 | 1469 |
1470 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1470 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1471 return; | 1471 return; |
1472 } | 1472 } |
1473 | 1473 |
1474 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1474 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1475 } | 1475 } |
1476 | 1476 |
1477 } // namespace content | 1477 } // namespace content |
OLD | NEW |