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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 switches::kDisableLogging, | 506 switches::kDisableLogging, |
507 switches::kLoggingLevel, | 507 switches::kLoggingLevel, |
508 switches::kDebugPrint, | 508 switches::kDebugPrint, |
509 switches::kMemoryProfiling, | 509 switches::kMemoryProfiling, |
510 switches::kEnableWatchdog, | 510 switches::kEnableWatchdog, |
511 switches::kMessageLoopHistogrammer, | 511 switches::kMessageLoopHistogrammer, |
512 switches::kEnableDCHECK, | 512 switches::kEnableDCHECK, |
513 switches::kSilentDumpOnDCHECK, | 513 switches::kSilentDumpOnDCHECK, |
514 switches::kUseLowFragHeapCrt, | 514 switches::kUseLowFragHeapCrt, |
515 switches::kEnableStatsTable, | 515 switches::kEnableStatsTable, |
516 switches::kAutoSpellCorrect, | 516 switches::kExperimentalSpellcheckerFeatures, |
517 switches::kDisableAudio, | 517 switches::kDisableAudio, |
518 switches::kSimpleDataSource, | 518 switches::kSimpleDataSource, |
519 switches::kEnableBenchmarking, | 519 switches::kEnableBenchmarking, |
520 switches::kInternalNaCl, | 520 switches::kInternalNaCl, |
521 switches::kEnableDatabases, | 521 switches::kEnableDatabases, |
522 switches::kEnableByteRangeSupport, | 522 switches::kEnableByteRangeSupport, |
523 }; | 523 }; |
524 | 524 |
525 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 525 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
526 if (browser_cmd.HasSwitch(switch_names[i])) { | 526 if (browser_cmd.HasSwitch(switch_names[i])) { |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 profile()->GetExtensionMessageService()->RemoveEventListener( | 1008 profile()->GetExtensionMessageService()->RemoveEventListener( |
1009 event_name, id()); | 1009 event_name, id()); |
1010 } | 1010 } |
1011 } | 1011 } |
1012 | 1012 |
1013 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { | 1013 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { |
1014 if (profile()->GetExtensionMessageService()) { | 1014 if (profile()->GetExtensionMessageService()) { |
1015 profile()->GetExtensionMessageService()->CloseChannel(port_id); | 1015 profile()->GetExtensionMessageService()->CloseChannel(port_id); |
1016 } | 1016 } |
1017 } | 1017 } |
OLD | NEW |