Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 342017: Allow sandbox logging to be set when invoking chrome and relayed to the rende... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 switches::kUseLowFragHeapCrt, 518 switches::kUseLowFragHeapCrt,
519 switches::kEnableStatsTable, 519 switches::kEnableStatsTable,
520 switches::kExperimentalSpellcheckerFeatures, 520 switches::kExperimentalSpellcheckerFeatures,
521 switches::kDisableAudio, 521 switches::kDisableAudio,
522 switches::kSimpleDataSource, 522 switches::kSimpleDataSource,
523 switches::kEnableBenchmarking, 523 switches::kEnableBenchmarking,
524 switches::kInternalNaCl, 524 switches::kInternalNaCl,
525 switches::kEnableDatabases, 525 switches::kEnableDatabases,
526 switches::kDisableByteRangeSupport, 526 switches::kDisableByteRangeSupport,
527 switches::kEnableWebSockets, 527 switches::kEnableWebSockets,
528 #if defined(OS_MACOSX)
529 // Allow this to be set when invoking the browser and relayed along.
530 switches::kEnableSandboxLogging,
531 #endif
528 }; 532 };
529 533
530 for (size_t i = 0; i < arraysize(switch_names); ++i) { 534 for (size_t i = 0; i < arraysize(switch_names); ++i) {
531 if (browser_cmd.HasSwitch(switch_names[i])) { 535 if (browser_cmd.HasSwitch(switch_names[i])) {
532 renderer_cmd->AppendSwitchWithValue(switch_names[i], 536 renderer_cmd->AppendSwitchWithValue(switch_names[i],
533 browser_cmd.GetSwitchValue(switch_names[i])); 537 browser_cmd.GetSwitchValue(switch_names[i]));
534 } 538 }
535 } 539 }
536 } 540 }
537 541
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 profile()->GetExtensionMessageService()->RemoveEventListener( 1036 profile()->GetExtensionMessageService()->RemoveEventListener(
1033 event_name, id()); 1037 event_name, id());
1034 } 1038 }
1035 } 1039 }
1036 1040
1037 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { 1041 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) {
1038 if (profile()->GetExtensionMessageService()) { 1042 if (profile()->GetExtensionMessageService()) {
1039 profile()->GetExtensionMessageService()->CloseChannel(port_id); 1043 profile()->GetExtensionMessageService()->CloseChannel(port_id);
1040 } 1044 }
1041 } 1045 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698