| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 #endif | 604 #endif |
| 605 switches::kRemoteShellPort, | 605 switches::kRemoteShellPort, |
| 606 switches::kEnablePepperTesting, | 606 switches::kEnablePepperTesting, |
| 607 switches::kBlockNonSandboxedPlugins, | 607 switches::kBlockNonSandboxedPlugins, |
| 608 switches::kDisableOutdatedPlugins, | 608 switches::kDisableOutdatedPlugins, |
| 609 switches::kEnableRemoting, | 609 switches::kEnableRemoting, |
| 610 switches::kDisableClickToPlay, | 610 switches::kDisableClickToPlay, |
| 611 switches::kEnableResourceContentSettings, | 611 switches::kEnableResourceContentSettings, |
| 612 switches::kPrelaunchGpuProcess, | 612 switches::kPrelaunchGpuProcess, |
| 613 switches::kEnableAcceleratedDecoding, | 613 switches::kEnableAcceleratedDecoding, |
| 614 switches::kEnableMatchPreview, |
| 614 switches::kDisableFileSystem | 615 switches::kDisableFileSystem |
| 615 }; | 616 }; |
| 616 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 617 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 617 arraysize(kSwitchNames)); | 618 arraysize(kSwitchNames)); |
| 618 | 619 |
| 619 // Disable databases in incognito mode. | 620 // Disable databases in incognito mode. |
| 620 if (profile()->IsOffTheRecord() && | 621 if (profile()->IsOffTheRecord() && |
| 621 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 622 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
| 622 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 623 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
| 623 } | 624 } |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 IPC::InvalidPlatformFileForTransit(), | 1119 IPC::InvalidPlatformFileForTransit(), |
| 1119 std::vector<std::string>(), | 1120 std::vector<std::string>(), |
| 1120 std::string(), | 1121 std::string(), |
| 1121 false)); | 1122 false)); |
| 1122 } | 1123 } |
| 1123 } | 1124 } |
| 1124 | 1125 |
| 1125 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1126 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
| 1126 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1127 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
| 1127 } | 1128 } |
| OLD | NEW |