| 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 switches::kEnableVideoLayering, | 553 switches::kEnableVideoLayering, |
| 554 switches::kEnableVideoLogging, | 554 switches::kEnableVideoLogging, |
| 555 switches::kEnableTouch, | 555 switches::kEnableTouch, |
| 556 // We propagate the Chrome Frame command line here as well in case the | 556 // We propagate the Chrome Frame command line here as well in case the |
| 557 // renderer is not run in the sandbox. | 557 // renderer is not run in the sandbox. |
| 558 switches::kChromeFrame, | 558 switches::kChromeFrame, |
| 559 // We need to propagate this flag to determine whether to make the | 559 // We need to propagate this flag to determine whether to make the |
| 560 // WebGLArray constructors on the DOMWindow visible. This | 560 // WebGLArray constructors on the DOMWindow visible. This |
| 561 // information is needed very early during bringup. We prefer to | 561 // information is needed very early during bringup. We prefer to |
| 562 // use the WebPreferences to set this flag on a page-by-page basis. | 562 // use the WebPreferences to set this flag on a page-by-page basis. |
| 563 switches::kDisableExperimentalWebGL, | 563 switches::kEnableExperimentalWebGL, |
| 564 switches::kDisableGLSLTranslator, | 564 switches::kDisableGLSLTranslator, |
| 565 switches::kInProcessWebGL, | 565 switches::kInProcessWebGL, |
| 566 switches::kDisableAcceleratedCompositing, | 566 switches::kEnableAcceleratedCompositing, |
| 567 #if defined(OS_MACOSX) | 567 #if defined(OS_MACOSX) |
| 568 // Allow this to be set when invoking the browser and relayed along. | 568 // Allow this to be set when invoking the browser and relayed along. |
| 569 switches::kEnableSandboxLogging, | 569 switches::kEnableSandboxLogging, |
| 570 switches::kDisableFlashCoreAnimation, | 570 switches::kDisableFlashCoreAnimation, |
| 571 #endif | 571 #endif |
| 572 switches::kRemoteShellPort, | 572 switches::kRemoteShellPort, |
| 573 switches::kEnablePepperTesting, | 573 switches::kEnablePepperTesting, |
| 574 switches::kBlockNonSandboxedPlugins, | 574 switches::kBlockNonSandboxedPlugins, |
| 575 switches::kDisableOutdatedPlugins, | 575 switches::kDisableOutdatedPlugins, |
| 576 switches::kEnableRemoting, | 576 switches::kEnableRemoting, |
| 577 switches::kDisableClickToPlay, | 577 switches::kDisableClickToPlay, |
| 578 switches::kEnableResourceContentSettings, | 578 switches::kEnableResourceContentSettings, |
| 579 switches::kPrelaunchGpuProcess, | 579 switches::kPrelaunchGpuProcess, |
| 580 switches::kEnableAcceleratedCompositing, |
| 580 switches::kEnableAcceleratedDecoding, | 581 switches::kEnableAcceleratedDecoding, |
| 581 switches::kEnableFileSystem, | 582 switches::kEnableFileSystem, |
| 582 }; | 583 }; |
| 583 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 584 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 584 arraysize(kSwitchNames)); | 585 arraysize(kSwitchNames)); |
| 585 | 586 |
| 586 // Disable databases in incognito mode. | 587 // Disable databases in incognito mode. |
| 587 if (profile()->IsOffTheRecord() && | 588 if (profile()->IsOffTheRecord() && |
| 588 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 589 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
| 589 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 590 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 IPC::InvalidPlatformFileForTransit(), | 1075 IPC::InvalidPlatformFileForTransit(), |
| 1075 std::vector<std::string>(), | 1076 std::vector<std::string>(), |
| 1076 std::string(), | 1077 std::string(), |
| 1077 false)); | 1078 false)); |
| 1078 } | 1079 } |
| 1079 } | 1080 } |
| 1080 | 1081 |
| 1081 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1082 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
| 1082 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1083 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
| 1083 } | 1084 } |
| OLD | NEW |