| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 switches::kEnableWatchdog, | 322 switches::kEnableWatchdog, |
| 323 switches::kMessageLoopHistogrammer, | 323 switches::kMessageLoopHistogrammer, |
| 324 switches::kEnableDCHECK, | 324 switches::kEnableDCHECK, |
| 325 switches::kSilentDumpOnDCHECK, | 325 switches::kSilentDumpOnDCHECK, |
| 326 switches::kUseLowFragHeapCrt, | 326 switches::kUseLowFragHeapCrt, |
| 327 switches::kEnableStatsTable, | 327 switches::kEnableStatsTable, |
| 328 switches::kAutoSpellCorrect, | 328 switches::kAutoSpellCorrect, |
| 329 switches::kDisableAudio, | 329 switches::kDisableAudio, |
| 330 switches::kSimpleDataSource, | 330 switches::kSimpleDataSource, |
| 331 switches::kEnableBenchmarking, | 331 switches::kEnableBenchmarking, |
| 332 switches::kInternalNaCl, |
| 332 switches::kEnableDatabases, | 333 switches::kEnableDatabases, |
| 333 }; | 334 }; |
| 334 | 335 |
| 335 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 336 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
| 336 if (browser_command_line.HasSwitch(switch_names[i])) { | 337 if (browser_command_line.HasSwitch(switch_names[i])) { |
| 337 cmd_line.AppendSwitchWithValue(switch_names[i], | 338 cmd_line.AppendSwitchWithValue(switch_names[i], |
| 338 browser_command_line.GetSwitchValue(switch_names[i])); | 339 browser_command_line.GetSwitchValue(switch_names[i])); |
| 339 } | 340 } |
| 340 } | 341 } |
| 341 | 342 |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 profile()->GetExtensionMessageService()->RemoveEventListener( | 979 profile()->GetExtensionMessageService()->RemoveEventListener( |
| 979 event_name, id()); | 980 event_name, id()); |
| 980 } | 981 } |
| 981 } | 982 } |
| 982 | 983 |
| 983 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 984 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
| 984 if (profile()->GetExtensionMessageService()) { | 985 if (profile()->GetExtensionMessageService()) { |
| 985 profile()->GetExtensionMessageService()->CloseChannel(port_id); | 986 profile()->GetExtensionMessageService()->CloseChannel(port_id); |
| 986 } | 987 } |
| 987 } | 988 } |
| OLD | NEW |