| 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 // 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 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 switches::kDisableWebAudio, | 1205 switches::kDisableWebAudio, |
| 1206 #endif | 1206 #endif |
| 1207 #if defined(OS_MACOSX) | 1207 #if defined(OS_MACOSX) |
| 1208 // Allow this to be set when invoking the browser and relayed along. | 1208 // Allow this to be set when invoking the browser and relayed along. |
| 1209 switches::kEnableSandboxLogging, | 1209 switches::kEnableSandboxLogging, |
| 1210 #endif | 1210 #endif |
| 1211 #if defined(OS_POSIX) | 1211 #if defined(OS_POSIX) |
| 1212 switches::kChildCleanExit, | 1212 switches::kChildCleanExit, |
| 1213 #endif | 1213 #endif |
| 1214 #if defined(OS_WIN) | 1214 #if defined(OS_WIN) |
| 1215 switches::kEnableDirectWrite, |
| 1215 switches::kEnableHighResolutionTime, | 1216 switches::kEnableHighResolutionTime, |
| 1216 switches::kHighDPISupport, | 1217 switches::kHighDPISupport, |
| 1217 #endif | 1218 #endif |
| 1218 }; | 1219 }; |
| 1219 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1220 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 1220 arraysize(kSwitchNames)); | 1221 arraysize(kSwitchNames)); |
| 1221 | 1222 |
| 1222 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1223 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
| 1223 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1224 BrowserMainLoop::GetInstance()->is_tracing_startup()) { |
| 1224 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1225 // Pass kTraceStartup switch to renderer only if startup tracing has not |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2157 void RenderProcessHostImpl::SetWebUIHandle( | 2158 void RenderProcessHostImpl::SetWebUIHandle( |
| 2158 int32 view_routing_id, | 2159 int32 view_routing_id, |
| 2159 mojo::ScopedMessagePipeHandle handle) { | 2160 mojo::ScopedMessagePipeHandle handle) { |
| 2160 if (!render_process_host_mojo_) | 2161 if (!render_process_host_mojo_) |
| 2161 render_process_host_mojo_.reset(new RenderProcessHostMojoImpl(this)); | 2162 render_process_host_mojo_.reset(new RenderProcessHostMojoImpl(this)); |
| 2162 render_process_host_mojo_->SetWebUIHandle(view_routing_id, handle.Pass()); | 2163 render_process_host_mojo_->SetWebUIHandle(view_routing_id, handle.Pass()); |
| 2163 } | 2164 } |
| 2164 #endif | 2165 #endif |
| 2165 | 2166 |
| 2166 } // namespace content | 2167 } // namespace content |
| OLD | NEW |