| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 switches::kEnableWatchdog, | 330 switches::kEnableWatchdog, |
| 331 switches::kMessageLoopHistogrammer, | 331 switches::kMessageLoopHistogrammer, |
| 332 switches::kEnableDCHECK, | 332 switches::kEnableDCHECK, |
| 333 switches::kSilentDumpOnDCHECK, | 333 switches::kSilentDumpOnDCHECK, |
| 334 switches::kUseLowFragHeapCrt, | 334 switches::kUseLowFragHeapCrt, |
| 335 switches::kEnableStatsTable, | 335 switches::kEnableStatsTable, |
| 336 switches::kAutoSpellCorrect, | 336 switches::kAutoSpellCorrect, |
| 337 switches::kDisableAudio, | 337 switches::kDisableAudio, |
| 338 switches::kSimpleDataSource, | 338 switches::kSimpleDataSource, |
| 339 switches::kEnableBenchmarking, | 339 switches::kEnableBenchmarking, |
| 340 switches::kIsolatedWorld, | |
| 341 }; | 340 }; |
| 342 | 341 |
| 343 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 342 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
| 344 if (browser_command_line.HasSwitch(switch_names[i])) { | 343 if (browser_command_line.HasSwitch(switch_names[i])) { |
| 345 cmd_line.AppendSwitchWithValue(switch_names[i], | 344 cmd_line.AppendSwitchWithValue(switch_names[i], |
| 346 browser_command_line.GetSwitchValue(switch_names[i])); | 345 browser_command_line.GetSwitchValue(switch_names[i])); |
| 347 } | 346 } |
| 348 } | 347 } |
| 349 | 348 |
| 350 // Tell the renderer to enable extensions if there are any extensions loaded. | 349 // Tell the renderer to enable extensions if there are any extensions loaded. |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 void BrowserRenderProcessHost::OnExtensionRemoveListener( | 968 void BrowserRenderProcessHost::OnExtensionRemoveListener( |
| 970 const std::string& event_name) { | 969 const std::string& event_name) { |
| 971 ExtensionMessageService::GetInstance(profile()->GetRequestContext())-> | 970 ExtensionMessageService::GetInstance(profile()->GetRequestContext())-> |
| 972 RemoveEventListener(event_name, pid()); | 971 RemoveEventListener(event_name, pid()); |
| 973 } | 972 } |
| 974 | 973 |
| 975 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 974 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
| 976 ExtensionMessageService::GetInstance(profile()->GetRequestContext())-> | 975 ExtensionMessageService::GetInstance(profile()->GetRequestContext())-> |
| 977 CloseChannel(port_id); | 976 CloseChannel(port_id); |
| 978 } | 977 } |
| OLD | NEW |