OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 browser_command_line.GetSwitchValue(switches::kUserDataDir); | 473 browser_command_line.GetSwitchValue(switches::kUserDataDir); |
474 if (!profile_path.empty()) | 474 if (!profile_path.empty()) |
475 command_line->AppendSwitchWithValue(switches::kUserDataDir, profile_path); | 475 command_line->AppendSwitchWithValue(switches::kUserDataDir, profile_path); |
476 } | 476 } |
477 | 477 |
478 void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer( | 478 void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer( |
479 const CommandLine& browser_cmd, | 479 const CommandLine& browser_cmd, |
480 CommandLine* renderer_cmd) const { | 480 CommandLine* renderer_cmd) const { |
481 // Propagate the following switches to the renderer command line (along | 481 // Propagate the following switches to the renderer command line (along |
482 // with any associated values) if present in the browser command line. | 482 // with any associated values) if present in the browser command line. |
483 static const wchar_t* const switch_names[] = { | 483 static const char* const switch_names[] = { |
484 switches::kRendererAssertTest, | 484 switches::kRendererAssertTest, |
485 switches::kRendererCrashTest, | 485 switches::kRendererCrashTest, |
486 switches::kRendererStartupDialog, | 486 switches::kRendererStartupDialog, |
487 switches::kNoSandbox, | 487 switches::kNoSandbox, |
488 switches::kTestSandbox, | 488 switches::kTestSandbox, |
489 switches::kEnableSeccompSandbox, | 489 switches::kEnableSeccompSandbox, |
490 #if !defined (GOOGLE_CHROME_BUILD) | 490 #if !defined (GOOGLE_CHROME_BUILD) |
491 // This is an unsupported and not fully tested mode, so don't enable it for | 491 // This is an unsupported and not fully tested mode, so don't enable it for |
492 // official Chrome builds. | 492 // official Chrome builds. |
493 switches::kInProcessPlugins, | 493 switches::kInProcessPlugins, |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 profile()->GetExtensionMessageService()->RemoveEventListener( | 1023 profile()->GetExtensionMessageService()->RemoveEventListener( |
1024 event_name, id()); | 1024 event_name, id()); |
1025 } | 1025 } |
1026 } | 1026 } |
1027 | 1027 |
1028 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 1028 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
1029 if (profile()->GetExtensionMessageService()) { | 1029 if (profile()->GetExtensionMessageService()) { |
1030 profile()->GetExtensionMessageService()->CloseChannel(port_id); | 1030 profile()->GetExtensionMessageService()->CloseChannel(port_id); |
1031 } | 1031 } |
1032 } | 1032 } |
OLD | NEW |