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

Side by Side Diff: content/browser/plugin_process_host.cc

Issue 11103028: Logging: pass logging related cmd line options to utility process (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove extra empty line Created 8 years, 2 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/plugin_process_host.h" 5 #include "content/browser/plugin_process_host.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <utility> // for pair<> 10 #include <utility> // for pair<>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kPluginProcess); 178 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kPluginProcess);
179 cmd_line->AppendSwitchPath(switches::kPluginPath, info.path); 179 cmd_line->AppendSwitchPath(switches::kPluginPath, info.path);
180 180
181 // Propagate the following switches to the plugin command line (along with 181 // Propagate the following switches to the plugin command line (along with
182 // any associated values) if present in the browser command line 182 // any associated values) if present in the browser command line
183 static const char* const kSwitchNames[] = { 183 static const char* const kSwitchNames[] = {
184 switches::kDisableBreakpad, 184 switches::kDisableBreakpad,
185 #if defined(OS_MACOSX) 185 #if defined(OS_MACOSX)
186 switches::kDisableCompositedCoreAnimationPlugins, 186 switches::kDisableCompositedCoreAnimationPlugins,
187 switches::kDisableCoreAnimationPlugins, 187 switches::kDisableCoreAnimationPlugins,
188 #endif
189 switches::kDisableLogging,
190 switches::kEnableDCHECK,
191 switches::kEnableLogging,
192 #if defined(OS_MACOSX)
193 switches::kEnableSandboxLogging, 188 switches::kEnableSandboxLogging,
194 #endif 189 #endif
195 switches::kEnableStatsTable, 190 switches::kEnableStatsTable,
196 switches::kFullMemoryCrashReport, 191 switches::kFullMemoryCrashReport,
197 switches::kLoggingLevel, 192 switches::kLoggingLevel,
198 switches::kLogPluginMessages, 193 switches::kLogPluginMessages,
199 switches::kNoSandbox, 194 switches::kNoSandbox,
200 switches::kPluginStartupDialog, 195 switches::kPluginStartupDialog,
201 switches::kTestSandbox, 196 switches::kTestSandbox,
202 switches::kTraceStartup, 197 switches::kTraceStartup,
203 switches::kUseGL, 198 switches::kUseGL,
204 switches::kUserAgent, 199 switches::kUserAgent,
205 switches::kV,
206 }; 200 };
207 201
208 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 202 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
209 arraysize(kSwitchNames)); 203 arraysize(kSwitchNames));
210 204
211 GpuDataManagerImpl::GetInstance()->AppendPluginCommandLine(cmd_line); 205 GpuDataManagerImpl::GetInstance()->AppendPluginCommandLine(cmd_line);
212 206
213 // If specified, prepend a launcher program to the command line. 207 // If specified, prepend a launcher program to the command line.
214 if (!plugin_launcher.empty()) 208 if (!plugin_launcher.empty())
215 cmd_line->PrependWrapper(plugin_launcher); 209 cmd_line->PrependWrapper(plugin_launcher);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 } 403 }
410 404
411 void PluginProcessHost::OnChannelCreated( 405 void PluginProcessHost::OnChannelCreated(
412 const IPC::ChannelHandle& channel_handle) { 406 const IPC::ChannelHandle& channel_handle) {
413 Client* client = sent_requests_.front(); 407 Client* client = sent_requests_.front();
414 408
415 if (client) 409 if (client)
416 client->OnChannelOpened(channel_handle); 410 client->OnChannelOpened(channel_handle);
417 sent_requests_.pop_front(); 411 sent_requests_.pop_front();
418 } 412 }
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698