| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 | 404 |
| 405 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() { | 405 IPC::SyncMessageFilter* RenderThreadImpl::GetSyncMessageFilter() { |
| 406 return sync_message_filter(); | 406 return sync_message_filter(); |
| 407 } | 407 } |
| 408 | 408 |
| 409 scoped_refptr<base::MessageLoopProxy> | 409 scoped_refptr<base::MessageLoopProxy> |
| 410 RenderThreadImpl::GetIOMessageLoopProxy() { | 410 RenderThreadImpl::GetIOMessageLoopProxy() { |
| 411 return ChildProcess::current()->io_message_loop_proxy(); | 411 return ChildProcess::current()->io_message_loop_proxy(); |
| 412 } | 412 } |
| 413 | 413 |
| 414 void RenderThreadImpl::AddRoute(int32 routing_id, | 414 void RenderThreadImpl::AddRoute(int32 routing_id, IPC::Listener* listener) { |
| 415 IPC::Channel::Listener* listener) { | |
| 416 widget_count_++; | 415 widget_count_++; |
| 417 return ChildThread::AddRoute(routing_id, listener); | 416 return ChildThread::AddRoute(routing_id, listener); |
| 418 } | 417 } |
| 419 | 418 |
| 420 void RenderThreadImpl::RemoveRoute(int32 routing_id) { | 419 void RenderThreadImpl::RemoveRoute(int32 routing_id) { |
| 421 widget_count_--; | 420 widget_count_--; |
| 422 return ChildThread::RemoveRoute(routing_id); | 421 return ChildThread::RemoveRoute(routing_id); |
| 423 } | 422 } |
| 424 | 423 |
| 425 int RenderThreadImpl::GenerateRoutingID() { | 424 int RenderThreadImpl::GenerateRoutingID() { |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 | 999 |
| 1001 scoped_refptr<base::MessageLoopProxy> | 1000 scoped_refptr<base::MessageLoopProxy> |
| 1002 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1001 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 1003 DCHECK(message_loop() == MessageLoop::current()); | 1002 DCHECK(message_loop() == MessageLoop::current()); |
| 1004 if (!file_thread_.get()) { | 1003 if (!file_thread_.get()) { |
| 1005 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1004 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1006 file_thread_->Start(); | 1005 file_thread_->Start(); |
| 1007 } | 1006 } |
| 1008 return file_thread_->message_loop_proxy(); | 1007 return file_thread_->message_loop_proxy(); |
| 1009 } | 1008 } |
| OLD | NEW |