| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 switches::kEnableWatchdog, | 335 switches::kEnableWatchdog, |
| 336 switches::kMessageLoopHistogrammer, | 336 switches::kMessageLoopHistogrammer, |
| 337 switches::kEnableDCHECK, | 337 switches::kEnableDCHECK, |
| 338 switches::kSilentDumpOnDCHECK, | 338 switches::kSilentDumpOnDCHECK, |
| 339 switches::kUseLowFragHeapCrt, | 339 switches::kUseLowFragHeapCrt, |
| 340 switches::kEnableStatsTable, | 340 switches::kEnableStatsTable, |
| 341 switches::kAutoSpellCorrect, | 341 switches::kAutoSpellCorrect, |
| 342 switches::kDisableAudio, | 342 switches::kDisableAudio, |
| 343 switches::kSimpleDataSource, | 343 switches::kSimpleDataSource, |
| 344 switches::kEnableBenchmarking, | 344 switches::kEnableBenchmarking, |
| 345 switches::kInternalNaCl, | |
| 346 switches::kEnableDatabases, | 345 switches::kEnableDatabases, |
| 347 }; | 346 }; |
| 348 | 347 |
| 349 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 348 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
| 350 if (browser_command_line.HasSwitch(switch_names[i])) { | 349 if (browser_command_line.HasSwitch(switch_names[i])) { |
| 351 cmd_line.AppendSwitchWithValue(switch_names[i], | 350 cmd_line.AppendSwitchWithValue(switch_names[i], |
| 352 browser_command_line.GetSwitchValue(switch_names[i])); | 351 browser_command_line.GetSwitchValue(switch_names[i])); |
| 353 } | 352 } |
| 354 } | 353 } |
| 355 | 354 |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 profile()->GetExtensionMessageService()->RemoveEventListener( | 963 profile()->GetExtensionMessageService()->RemoveEventListener( |
| 965 event_name, id()); | 964 event_name, id()); |
| 966 } | 965 } |
| 967 } | 966 } |
| 968 | 967 |
| 969 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 968 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
| 970 if (profile()->GetExtensionMessageService()) { | 969 if (profile()->GetExtensionMessageService()) { |
| 971 profile()->GetExtensionMessageService()->CloseChannel(port_id); | 970 profile()->GetExtensionMessageService()->CloseChannel(port_id); |
| 972 } | 971 } |
| 973 } | 972 } |
| OLD | NEW |