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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 switches::kEnableGLSLTranslator, | 570 switches::kEnableGLSLTranslator, |
571 switches::kInProcessWebGL, | 571 switches::kInProcessWebGL, |
572 #if defined(OS_MACOSX) | 572 #if defined(OS_MACOSX) |
573 // Allow this to be set when invoking the browser and relayed along. | 573 // Allow this to be set when invoking the browser and relayed along. |
574 switches::kEnableSandboxLogging, | 574 switches::kEnableSandboxLogging, |
575 switches::kDisableFlashCoreAnimation, | 575 switches::kDisableFlashCoreAnimation, |
576 #endif | 576 #endif |
577 switches::kRemoteShellPort, | 577 switches::kRemoteShellPort, |
578 switches::kEnablePepperTesting, | 578 switches::kEnablePepperTesting, |
579 switches::kEnableChromoting, | 579 switches::kEnableChromoting, |
| 580 switches::kEnableClickToPlay, |
580 switches::kPrelaunchGpuProcess, | 581 switches::kPrelaunchGpuProcess, |
581 }; | 582 }; |
582 | 583 |
583 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 584 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
584 if (browser_cmd.HasSwitch(switch_names[i])) { | 585 if (browser_cmd.HasSwitch(switch_names[i])) { |
585 renderer_cmd->AppendSwitchWithValue(switch_names[i], | 586 renderer_cmd->AppendSwitchWithValue(switch_names[i], |
586 browser_cmd.GetSwitchValueASCII(switch_names[i])); | 587 browser_cmd.GetSwitchValueASCII(switch_names[i])); |
587 } | 588 } |
588 } | 589 } |
589 | 590 |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 IPC::InvalidPlatformFileForTransit(), | 1072 IPC::InvalidPlatformFileForTransit(), |
1072 std::vector<std::string>(), | 1073 std::vector<std::string>(), |
1073 std::string(), | 1074 std::string(), |
1074 false)); | 1075 false)); |
1075 } | 1076 } |
1076 } | 1077 } |
1077 | 1078 |
1078 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1079 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
1079 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1080 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
1080 } | 1081 } |
OLD | NEW |