| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 switches::kUseLowFragHeapCrt, | 518 switches::kUseLowFragHeapCrt, |
| 519 switches::kEnableStatsTable, | 519 switches::kEnableStatsTable, |
| 520 switches::kExperimentalSpellcheckerFeatures, | 520 switches::kExperimentalSpellcheckerFeatures, |
| 521 switches::kDisableAudio, | 521 switches::kDisableAudio, |
| 522 switches::kSimpleDataSource, | 522 switches::kSimpleDataSource, |
| 523 switches::kEnableBenchmarking, | 523 switches::kEnableBenchmarking, |
| 524 switches::kInternalNaCl, | 524 switches::kInternalNaCl, |
| 525 switches::kEnableDatabases, | 525 switches::kEnableDatabases, |
| 526 switches::kDisableByteRangeSupport, | 526 switches::kDisableByteRangeSupport, |
| 527 switches::kEnableWebSockets, | 527 switches::kEnableWebSockets, |
| 528 #if defined(OS_MACOSX) |
| 529 // Allow this to be set when invoking the browser and relayed along. |
| 530 switches::kEnableSandboxLogging, |
| 531 #endif |
| 528 }; | 532 }; |
| 529 | 533 |
| 530 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 534 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
| 531 if (browser_cmd.HasSwitch(switch_names[i])) { | 535 if (browser_cmd.HasSwitch(switch_names[i])) { |
| 532 renderer_cmd->AppendSwitchWithValue(switch_names[i], | 536 renderer_cmd->AppendSwitchWithValue(switch_names[i], |
| 533 browser_cmd.GetSwitchValue(switch_names[i])); | 537 browser_cmd.GetSwitchValue(switch_names[i])); |
| 534 } | 538 } |
| 535 } | 539 } |
| 536 } | 540 } |
| 537 | 541 |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 profile()->GetExtensionMessageService()->RemoveEventListener( | 1036 profile()->GetExtensionMessageService()->RemoveEventListener( |
| 1033 event_name, id()); | 1037 event_name, id()); |
| 1034 } | 1038 } |
| 1035 } | 1039 } |
| 1036 | 1040 |
| 1037 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 1041 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
| 1038 if (profile()->GetExtensionMessageService()) { | 1042 if (profile()->GetExtensionMessageService()) { |
| 1039 profile()->GetExtensionMessageService()->CloseChannel(port_id); | 1043 profile()->GetExtensionMessageService()->CloseChannel(port_id); |
| 1040 } | 1044 } |
| 1041 } | 1045 } |
| OLD | NEW |