| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #include "content/common/child_process_messages.h" | 61 #include "content/common/child_process_messages.h" |
| 62 #include "content/common/content_constants_internal.h" | 62 #include "content/common/content_constants_internal.h" |
| 63 #include "content/common/database_messages.h" | 63 #include "content/common/database_messages.h" |
| 64 #include "content/common/dom_storage/dom_storage_messages.h" | 64 #include "content/common/dom_storage/dom_storage_messages.h" |
| 65 #include "content/common/frame_messages.h" | 65 #include "content/common/frame_messages.h" |
| 66 #include "content/common/gpu/client/context_provider_command_buffer.h" | 66 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 67 #include "content/common/gpu/client/gpu_channel_host.h" | 67 #include "content/common/gpu/client/gpu_channel_host.h" |
| 68 #include "content/common/gpu/gpu_messages.h" | 68 #include "content/common/gpu/gpu_messages.h" |
| 69 #include "content/common/gpu/gpu_process_launch_causes.h" | 69 #include "content/common/gpu/gpu_process_launch_causes.h" |
| 70 #include "content/common/render_frame_setup.mojom.h" | 70 #include "content/common/render_frame_setup.mojom.h" |
| 71 #include "content/common/render_process_messages.h" |
| 71 #include "content/common/resource_messages.h" | 72 #include "content/common/resource_messages.h" |
| 72 #include "content/common/service_worker/embedded_worker_setup.mojom.h" | 73 #include "content/common/service_worker/embedded_worker_setup.mojom.h" |
| 73 #include "content/common/view_messages.h" | 74 #include "content/common/view_messages.h" |
| 74 #include "content/common/worker_messages.h" | 75 #include "content/common/worker_messages.h" |
| 75 #include "content/public/common/content_constants.h" | 76 #include "content/public/common/content_constants.h" |
| 76 #include "content/public/common/content_paths.h" | 77 #include "content/public/common/content_paths.h" |
| 77 #include "content/public/common/content_switches.h" | 78 #include "content/public/common/content_switches.h" |
| 78 #include "content/public/common/mojo_channel_switches.h" | 79 #include "content/public/common/mojo_channel_switches.h" |
| 79 #include "content/public/common/renderer_preferences.h" | 80 #include "content/public/common/renderer_preferences.h" |
| 80 #include "content/public/common/url_constants.h" | 81 #include "content/public/common/url_constants.h" |
| (...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 return audio_hardware_config_.get(); | 1450 return audio_hardware_config_.get(); |
| 1450 } | 1451 } |
| 1451 | 1452 |
| 1452 base::WaitableEvent* RenderThreadImpl::GetShutdownEvent() { | 1453 base::WaitableEvent* RenderThreadImpl::GetShutdownEvent() { |
| 1453 return ChildProcess::current()->GetShutDownEvent(); | 1454 return ChildProcess::current()->GetShutDownEvent(); |
| 1454 } | 1455 } |
| 1455 | 1456 |
| 1456 #if defined(OS_WIN) | 1457 #if defined(OS_WIN) |
| 1457 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, | 1458 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, |
| 1458 const base::string16& str) { | 1459 const base::string16& str) { |
| 1459 Send(new FrameHostMsg_PreCacheFontCharacters(log_font, str)); | 1460 Send(new RenderProcessHostMsg_PreCacheFontCharacters(log_font, str)); |
| 1460 } | 1461 } |
| 1461 | 1462 |
| 1462 #endif // OS_WIN | 1463 #endif // OS_WIN |
| 1463 | 1464 |
| 1464 ServiceRegistry* RenderThreadImpl::GetServiceRegistry() { | 1465 ServiceRegistry* RenderThreadImpl::GetServiceRegistry() { |
| 1465 return service_registry(); | 1466 return service_registry(); |
| 1466 } | 1467 } |
| 1467 | 1468 |
| 1468 bool RenderThreadImpl::IsGpuRasterizationForced() { | 1469 bool RenderThreadImpl::IsGpuRasterizationForced() { |
| 1469 return is_gpu_rasterization_forced_; | 1470 return is_gpu_rasterization_forced_; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1973 } | 1974 } |
| 1974 | 1975 |
| 1975 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 1976 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 1976 size_t erased = | 1977 size_t erased = |
| 1977 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 1978 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 1978 routing_id_); | 1979 routing_id_); |
| 1979 DCHECK_EQ(1u, erased); | 1980 DCHECK_EQ(1u, erased); |
| 1980 } | 1981 } |
| 1981 | 1982 |
| 1982 } // namespace content | 1983 } // namespace content |
| OLD | NEW |