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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() { | 645 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() { |
646 return sync_message_filter(); | 646 return sync_message_filter(); |
647 } | 647 } |
648 | 648 |
649 scoped_refptr<base::MessageLoopProxy> | 649 scoped_refptr<base::MessageLoopProxy> |
650 RenderThreadImpl::GetIOMessageLoopProxy() { | 650 RenderThreadImpl::GetIOMessageLoopProxy() { |
651 return ChildProcess::current()->io_message_loop_proxy(); | 651 return ChildProcess::current()->io_message_loop_proxy(); |
652 } | 652 } |
653 | 653 |
654 void RenderThreadImpl::AddRoute(int32 routing_id, IPC::Listener* listener) { | 654 void RenderThreadImpl::AddRoute(int32 routing_id, IPC::Listener* listener) { |
655 ChildThread::AddRoute(routing_id, listener); | 655 ChildThread::GetRouter()->AddRoute(routing_id, listener); |
656 } | 656 } |
657 | 657 |
658 void RenderThreadImpl::RemoveRoute(int32 routing_id) { | 658 void RenderThreadImpl::RemoveRoute(int32 routing_id) { |
659 ChildThread::RemoveRoute(routing_id); | 659 ChildThread::GetRouter()->RemoveRoute(routing_id); |
660 } | 660 } |
661 int RenderThreadImpl::GenerateRoutingID() { | 661 int RenderThreadImpl::GenerateRoutingID() { |
662 int routing_id = MSG_ROUTING_NONE; | 662 int routing_id = MSG_ROUTING_NONE; |
663 Send(new ViewHostMsg_GenerateRoutingID(&routing_id)); | 663 Send(new ViewHostMsg_GenerateRoutingID(&routing_id)); |
664 return routing_id; | 664 return routing_id; |
665 } | 665 } |
666 | 666 |
667 void RenderThreadImpl::AddFilter(IPC::ChannelProxy::MessageFilter* filter) { | 667 void RenderThreadImpl::AddFilter(IPC::ChannelProxy::MessageFilter* filter) { |
668 channel()->AddFilter(filter); | 668 channel()->AddFilter(filter); |
669 } | 669 } |
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 hidden_widget_count_--; | 1454 hidden_widget_count_--; |
1455 | 1455 |
1456 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1456 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1457 return; | 1457 return; |
1458 } | 1458 } |
1459 | 1459 |
1460 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1460 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1461 } | 1461 } |
1462 | 1462 |
1463 } // namespace content | 1463 } // namespace content |
OLD | NEW |