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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
617 switches::kRemoteShellPort, | 617 switches::kRemoteShellPort, |
618 switches::kEnablePepperTesting, | 618 switches::kEnablePepperTesting, |
619 switches::kBlockNonSandboxedPlugins, | 619 switches::kBlockNonSandboxedPlugins, |
620 switches::kDisableOutdatedPlugins, | 620 switches::kDisableOutdatedPlugins, |
621 switches::kEnableRemoting, | 621 switches::kEnableRemoting, |
622 switches::kDisableClickToPlay, | 622 switches::kDisableClickToPlay, |
623 switches::kEnableResourceContentSettings, | 623 switches::kEnableResourceContentSettings, |
624 switches::kPrelaunchGpuProcess, | 624 switches::kPrelaunchGpuProcess, |
625 switches::kEnableAcceleratedDecoding, | 625 switches::kEnableAcceleratedDecoding, |
626 switches::kDisableFileSystem, | 626 switches::kDisableFileSystem, |
627 switches::kPpapiOutOfProcess | 627 switches::kPpapiOutOfProcess, |
628 switches::kEnablePrintPreview | |
Lei Zhang
2010/11/12 02:10:55
You can put a trailing comma after the last item.
kmadhusu
2010/11/12 22:21:48
Done.
| |
628 }; | 629 }; |
629 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 630 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
630 arraysize(kSwitchNames)); | 631 arraysize(kSwitchNames)); |
631 | 632 |
632 // Disable databases in incognito mode. | 633 // Disable databases in incognito mode. |
633 if (profile()->IsOffTheRecord() && | 634 if (profile()->IsOffTheRecord() && |
634 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 635 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
635 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 636 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
636 } | 637 } |
637 } | 638 } |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1147 IPC::InvalidPlatformFileForTransit(), | 1148 IPC::InvalidPlatformFileForTransit(), |
1148 std::vector<std::string>(), | 1149 std::vector<std::string>(), |
1149 std::string(), | 1150 std::string(), |
1150 false)); | 1151 false)); |
1151 } | 1152 } |
1152 } | 1153 } |
1153 | 1154 |
1154 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1155 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
1155 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1156 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
1156 } | 1157 } |
OLD | NEW |