| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/browser_render_process_host.h" | 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 AppendRendererCommandLine(cmd_line); | 336 AppendRendererCommandLine(cmd_line); |
| 337 cmd_line->AppendSwitchWithValue(switches::kProcessChannelID, | 337 cmd_line->AppendSwitchWithValue(switches::kProcessChannelID, |
| 338 ASCIIToWide(channel_id)); | 338 ASCIIToWide(channel_id)); |
| 339 | 339 |
| 340 // Spawn the child process asynchronously to avoid blocking the UI thread. | 340 // Spawn the child process asynchronously to avoid blocking the UI thread. |
| 341 // As long as there's no renderer prefix, we can use the zygote process | 341 // As long as there's no renderer prefix, we can use the zygote process |
| 342 // at this stage. | 342 // at this stage. |
| 343 child_process_.reset(new ChildProcessLauncher( | 343 child_process_.reset(new ChildProcessLauncher( |
| 344 #if defined(OS_WIN) | 344 #if defined(OS_WIN) |
| 345 FilePath(), | 345 FilePath(), |
| 346 #elif defined(OS_POSIX) | 346 #elif defined(POSIX) |
| 347 renderer_prefix.empty(), | 347 renderer_prefix.empty(), |
| 348 base::environment_vector(), | 348 base::environment_vector(), |
| 349 channel_->GetClientFileDescriptor(), | 349 channel_->GetClientFileDescriptor(), |
| 350 #endif | 350 #endif |
| 351 cmd_line, | 351 cmd_line, |
| 352 this)); | 352 this)); |
| 353 | 353 |
| 354 fast_shutdown_started_ = false; | 354 fast_shutdown_started_ = false; |
| 355 } | 355 } |
| 356 | 356 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 switches::kDisableDesktopNotifications, | 548 switches::kDisableDesktopNotifications, |
| 549 switches::kDisableWebSockets, | 549 switches::kDisableWebSockets, |
| 550 switches::kDisableLocalStorage, | 550 switches::kDisableLocalStorage, |
| 551 switches::kDisableSessionStorage, | 551 switches::kDisableSessionStorage, |
| 552 switches::kDisableSharedWorkers, | 552 switches::kDisableSharedWorkers, |
| 553 switches::kDisableApplicationCache, | 553 switches::kDisableApplicationCache, |
| 554 switches::kEnableIndexedDatabase, | 554 switches::kEnableIndexedDatabase, |
| 555 switches::kDisableGeolocation, | 555 switches::kDisableGeolocation, |
| 556 switches::kShowPaintRects, | 556 switches::kShowPaintRects, |
| 557 switches::kEnableOpenMax, | 557 switches::kEnableOpenMax, |
| 558 switches::kVideoThreads, |
| 558 switches::kEnableVideoLayering, | 559 switches::kEnableVideoLayering, |
| 559 switches::kEnableVideoLogging, | 560 switches::kEnableVideoLogging, |
| 560 switches::kEnableTouch, | 561 switches::kEnableTouch, |
| 561 // We propagate the Chrome Frame command line here as well in case the | 562 // We propagate the Chrome Frame command line here as well in case the |
| 562 // renderer is not run in the sandbox. | 563 // renderer is not run in the sandbox. |
| 563 switches::kChromeFrame, | 564 switches::kChromeFrame, |
| 564 // We need to propagate this flag to determine whether to make the | 565 // We need to propagate this flag to determine whether to make the |
| 565 // WebGLArray constructors on the DOMWindow visible. This | 566 // WebGLArray constructors on the DOMWindow visible. This |
| 566 // information is needed very early during bringup. We prefer to | 567 // information is needed very early during bringup. We prefer to |
| 567 // use the WebPreferences to set this flag on a page-by-page basis. | 568 // use the WebPreferences to set this flag on a page-by-page basis. |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 IPC::InvalidPlatformFileForTransit(), | 1061 IPC::InvalidPlatformFileForTransit(), |
| 1061 std::vector<std::string>(), | 1062 std::vector<std::string>(), |
| 1062 std::string(), | 1063 std::string(), |
| 1063 false)); | 1064 false)); |
| 1064 } | 1065 } |
| 1065 } | 1066 } |
| 1066 | 1067 |
| 1067 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1068 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
| 1068 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1069 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
| 1069 } | 1070 } |
| OLD | NEW |