| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 switches::kEnableWatchdog, | 319 switches::kEnableWatchdog, |
| 320 switches::kMessageLoopHistogrammer, | 320 switches::kMessageLoopHistogrammer, |
| 321 switches::kEnableDCHECK, | 321 switches::kEnableDCHECK, |
| 322 switches::kSilentDumpOnDCHECK, | 322 switches::kSilentDumpOnDCHECK, |
| 323 switches::kUseLowFragHeapCrt, | 323 switches::kUseLowFragHeapCrt, |
| 324 switches::kEnableStatsTable, | 324 switches::kEnableStatsTable, |
| 325 switches::kAutoSpellCorrect, | 325 switches::kAutoSpellCorrect, |
| 326 switches::kDisableAudio, | 326 switches::kDisableAudio, |
| 327 switches::kSimpleDataSource, | 327 switches::kSimpleDataSource, |
| 328 switches::kEnableBenchmarking, | 328 switches::kEnableBenchmarking, |
| 329 switches::kInternalNaCl, | |
| 330 switches::kEnableDatabases, | 329 switches::kEnableDatabases, |
| 331 }; | 330 }; |
| 332 | 331 |
| 333 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 332 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
| 334 if (browser_command_line.HasSwitch(switch_names[i])) { | 333 if (browser_command_line.HasSwitch(switch_names[i])) { |
| 335 cmd_line.AppendSwitchWithValue(switch_names[i], | 334 cmd_line.AppendSwitchWithValue(switch_names[i], |
| 336 browser_command_line.GetSwitchValue(switch_names[i])); | 335 browser_command_line.GetSwitchValue(switch_names[i])); |
| 337 } | 336 } |
| 338 } | 337 } |
| 339 | 338 |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 profile()->GetExtensionMessageService()->RemoveEventListener( | 960 profile()->GetExtensionMessageService()->RemoveEventListener( |
| 962 event_name, id()); | 961 event_name, id()); |
| 963 } | 962 } |
| 964 } | 963 } |
| 965 | 964 |
| 966 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 965 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
| 967 if (profile()->GetExtensionMessageService()) { | 966 if (profile()->GetExtensionMessageService()) { |
| 968 profile()->GetExtensionMessageService()->CloseChannel(port_id); | 967 profile()->GetExtensionMessageService()->CloseChannel(port_id); |
| 969 } | 968 } |
| 970 } | 969 } |
| OLD | NEW |