OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 switches::kSilentDumpOnDCHECK, | 512 switches::kSilentDumpOnDCHECK, |
513 switches::kUseLowFragHeapCrt, | 513 switches::kUseLowFragHeapCrt, |
514 switches::kEnableStatsTable, | 514 switches::kEnableStatsTable, |
515 switches::kExperimentalSpellcheckerFeatures, | 515 switches::kExperimentalSpellcheckerFeatures, |
516 switches::kDisableAudio, | 516 switches::kDisableAudio, |
517 switches::kSimpleDataSource, | 517 switches::kSimpleDataSource, |
518 switches::kEnableBenchmarking, | 518 switches::kEnableBenchmarking, |
519 switches::kInternalNaCl, | 519 switches::kInternalNaCl, |
520 switches::kEnableDatabases, | 520 switches::kEnableDatabases, |
521 switches::kEnableByteRangeSupport, | 521 switches::kEnableByteRangeSupport, |
| 522 switches::kEnableWebSockets, |
522 }; | 523 }; |
523 | 524 |
524 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 525 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
525 if (browser_cmd.HasSwitch(switch_names[i])) { | 526 if (browser_cmd.HasSwitch(switch_names[i])) { |
526 renderer_cmd->AppendSwitchWithValue(switch_names[i], | 527 renderer_cmd->AppendSwitchWithValue(switch_names[i], |
527 browser_cmd.GetSwitchValue(switch_names[i])); | 528 browser_cmd.GetSwitchValue(switch_names[i])); |
528 } | 529 } |
529 } | 530 } |
530 } | 531 } |
531 | 532 |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 profile()->GetExtensionMessageService()->RemoveEventListener( | 1008 profile()->GetExtensionMessageService()->RemoveEventListener( |
1008 event_name, id()); | 1009 event_name, id()); |
1009 } | 1010 } |
1010 } | 1011 } |
1011 | 1012 |
1012 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 1013 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
1013 if (profile()->GetExtensionMessageService()) { | 1014 if (profile()->GetExtensionMessageService()) { |
1014 profile()->GetExtensionMessageService()->CloseChannel(port_id); | 1015 profile()->GetExtensionMessageService()->CloseChannel(port_id); |
1015 } | 1016 } |
1016 } | 1017 } |
OLD | NEW |