| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 switches::kSilentDumpOnDCHECK, | 272 switches::kSilentDumpOnDCHECK, |
| 273 switches::kUseLowFragHeapCrt, | 273 switches::kUseLowFragHeapCrt, |
| 274 switches::kEnableWebWorkers, | 274 switches::kEnableWebWorkers, |
| 275 switches::kEnableStatsTable, | 275 switches::kEnableStatsTable, |
| 276 switches::kEnableExtensions, | 276 switches::kEnableExtensions, |
| 277 switches::kDisableOutOfProcessDevTools, | 277 switches::kDisableOutOfProcessDevTools, |
| 278 switches::kAutoSpellCorrect, | 278 switches::kAutoSpellCorrect, |
| 279 switches::kDisableAudio, | 279 switches::kDisableAudio, |
| 280 switches::kSimpleDataSource, | 280 switches::kSimpleDataSource, |
| 281 switches::kEnableBenchmarking, | 281 switches::kEnableBenchmarking, |
| 282 switches::kIsolatedWorld, |
| 282 }; | 283 }; |
| 283 | 284 |
| 284 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 285 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
| 285 if (browser_command_line.HasSwitch(switch_names[i])) { | 286 if (browser_command_line.HasSwitch(switch_names[i])) { |
| 286 cmd_line.AppendSwitchWithValue(switch_names[i], | 287 cmd_line.AppendSwitchWithValue(switch_names[i], |
| 287 browser_command_line.GetSwitchValue(switch_names[i])); | 288 browser_command_line.GetSwitchValue(switch_names[i])); |
| 288 } | 289 } |
| 289 } | 290 } |
| 290 | 291 |
| 291 // Pass on the browser locale. | 292 // Pass on the browser locale. |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); | 862 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); |
| 862 ems->AddEventListener(event_name, pid()); | 863 ems->AddEventListener(event_name, pid()); |
| 863 } | 864 } |
| 864 | 865 |
| 865 void BrowserRenderProcessHost::OnExtensionRemoveListener( | 866 void BrowserRenderProcessHost::OnExtensionRemoveListener( |
| 866 const std::string& event_name) { | 867 const std::string& event_name) { |
| 867 URLRequestContext* context = profile()->GetRequestContext(); | 868 URLRequestContext* context = profile()->GetRequestContext(); |
| 868 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); | 869 ExtensionMessageService* ems = ExtensionMessageService::GetInstance(context); |
| 869 ems->RemoveEventListener(event_name, pid()); | 870 ems->RemoveEventListener(event_name, pid()); |
| 870 } | 871 } |
| OLD | NEW |