| 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 switches::kEnableDesktopNotifications, |
| 528 #if defined(OS_MACOSX) | 529 #if defined(OS_MACOSX) |
| 529 // Allow this to be set when invoking the browser and relayed along. | 530 // Allow this to be set when invoking the browser and relayed along. |
| 530 switches::kEnableSandboxLogging, | 531 switches::kEnableSandboxLogging, |
| 531 #endif | 532 #endif |
| 532 }; | 533 }; |
| 533 | 534 |
| 534 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 535 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
| 535 if (browser_cmd.HasSwitch(switch_names[i])) { | 536 if (browser_cmd.HasSwitch(switch_names[i])) { |
| 536 renderer_cmd->AppendSwitchWithValue(switch_names[i], | 537 renderer_cmd->AppendSwitchWithValue(switch_names[i], |
| 537 browser_cmd.GetSwitchValue(switch_names[i])); | 538 browser_cmd.GetSwitchValue(switch_names[i])); |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 profile()->GetExtensionMessageService()->RemoveEventListener( | 1034 profile()->GetExtensionMessageService()->RemoveEventListener( |
| 1034 event_name, id()); | 1035 event_name, id()); |
| 1035 } | 1036 } |
| 1036 } | 1037 } |
| 1037 | 1038 |
| 1038 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 1039 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
| 1039 if (profile()->GetExtensionMessageService()) { | 1040 if (profile()->GetExtensionMessageService()) { |
| 1040 profile()->GetExtensionMessageService()->CloseChannel(port_id); | 1041 profile()->GetExtensionMessageService()->CloseChannel(port_id); |
| 1041 } | 1042 } |
| 1042 } | 1043 } |
| OLD | NEW |