| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 #if defined(OS_WIN) | 189 #if defined(OS_WIN) |
| 190 #include "base/win/scoped_com_initializer.h" | 190 #include "base/win/scoped_com_initializer.h" |
| 191 #include "base/win/windows_version.h" | 191 #include "base/win/windows_version.h" |
| 192 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" | 192 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" |
| 193 #include "content/common/font_cache_dispatcher_win.h" | 193 #include "content/common/font_cache_dispatcher_win.h" |
| 194 #include "content/common/sandbox_win.h" | 194 #include "content/common/sandbox_win.h" |
| 195 #include "sandbox/win/src/sandbox_policy.h" | 195 #include "sandbox/win/src/sandbox_policy.h" |
| 196 #include "ui/gfx/win/dpi.h" | 196 #include "ui/gfx/win/dpi.h" |
| 197 #endif | 197 #endif |
| 198 | 198 |
| 199 #if defined(OS_MACOSX) && !defined(OS_IOS) | 199 #if defined(OS_MACOSX) |
| 200 #include "content/browser/bootstrap_sandbox_manager_mac.h" | 200 #include "content/browser/bootstrap_sandbox_manager_mac.h" |
| 201 #include "content/browser/mach_broker_mac.h" | 201 #include "content/browser/mach_broker_mac.h" |
| 202 #endif | 202 #endif |
| 203 | 203 |
| 204 #if defined(OS_POSIX) | 204 #if defined(OS_POSIX) |
| 205 #include "content/browser/zygote_host/zygote_communication_linux.h" | 205 #include "content/browser/zygote_host/zygote_communication_linux.h" |
| 206 #include "content/browser/zygote_host/zygote_host_impl_linux.h" | 206 #include "content/browser/zygote_host/zygote_host_impl_linux.h" |
| 207 #include "content/public/browser/zygote_handle_linux.h" | 207 #include "content/public/browser/zygote_handle_linux.h" |
| 208 #endif // defined(OS_POSIX) | 208 #endif // defined(OS_POSIX) |
| 209 | 209 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 #if defined(OS_MACOSX) | 607 #if defined(OS_MACOSX) |
| 608 if (BootstrapSandboxManager::ShouldEnable()) | 608 if (BootstrapSandboxManager::ShouldEnable()) |
| 609 AddObserver(BootstrapSandboxManager::GetInstance()); | 609 AddObserver(BootstrapSandboxManager::GetInstance()); |
| 610 #endif | 610 #endif |
| 611 | 611 |
| 612 #if USE_ATTACHMENT_BROKER | 612 #if USE_ATTACHMENT_BROKER |
| 613 // Construct the privileged attachment broker early in the life cycle of a | 613 // Construct the privileged attachment broker early in the life cycle of a |
| 614 // render process. This ensures that when a test is being run in one of the | 614 // render process. This ensures that when a test is being run in one of the |
| 615 // single process modes, the global attachment broker is the privileged | 615 // single process modes, the global attachment broker is the privileged |
| 616 // attachment broker, rather than an unprivileged attachment broker. | 616 // attachment broker, rather than an unprivileged attachment broker. |
| 617 #if defined(OS_MACOSX) && !defined(OS_IOS) | 617 #if defined(OS_MACOSX) |
| 618 IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded( | 618 IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded( |
| 619 MachBroker::GetInstance()); | 619 MachBroker::GetInstance()); |
| 620 #else | 620 #else |
| 621 IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded(); | 621 IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded(); |
| 622 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 622 #endif // defined(OS_MACOSX) |
| 623 #endif // USE_ATTACHMENT_BROKER | 623 #endif // USE_ATTACHMENT_BROKER |
| 624 } | 624 } |
| 625 | 625 |
| 626 // static | 626 // static |
| 627 void RenderProcessHostImpl::ShutDownInProcessRenderer() { | 627 void RenderProcessHostImpl::ShutDownInProcessRenderer() { |
| 628 DCHECK(g_run_renderer_in_process_); | 628 DCHECK(g_run_renderer_in_process_); |
| 629 | 629 |
| 630 switch (g_all_hosts.Pointer()->size()) { | 630 switch (g_all_hosts.Pointer()->size()) { |
| 631 case 0: | 631 case 0: |
| 632 return; | 632 return; |
| (...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2813 | 2813 |
| 2814 // Skip widgets in other processes. | 2814 // Skip widgets in other processes. |
| 2815 if (rvh->GetProcess()->GetID() != GetID()) | 2815 if (rvh->GetProcess()->GetID() != GetID()) |
| 2816 continue; | 2816 continue; |
| 2817 | 2817 |
| 2818 rvh->OnWebkitPreferencesChanged(); | 2818 rvh->OnWebkitPreferencesChanged(); |
| 2819 } | 2819 } |
| 2820 } | 2820 } |
| 2821 | 2821 |
| 2822 } // namespace content | 2822 } // namespace content |
| OLD | NEW |