OLD | NEW |
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // any associated values) if present in the browser command line | 215 // any associated values) if present in the browser command line |
216 static const char* const kSwitchNames[] = { | 216 static const char* const kSwitchNames[] = { |
217 switches::kDisableBreakpad, | 217 switches::kDisableBreakpad, |
218 switches::kDisableDirectNPAPIRequests, | 218 switches::kDisableDirectNPAPIRequests, |
219 switches::kEnableStatsTable, | 219 switches::kEnableStatsTable, |
220 switches::kFullMemoryCrashReport, | 220 switches::kFullMemoryCrashReport, |
221 switches::kLoggingLevel, | 221 switches::kLoggingLevel, |
222 switches::kLogPluginMessages, | 222 switches::kLogPluginMessages, |
223 switches::kNoSandbox, | 223 switches::kNoSandbox, |
224 switches::kPluginStartupDialog, | 224 switches::kPluginStartupDialog, |
225 switches::kTraceConfigFile, | |
226 switches::kTraceStartup, | 225 switches::kTraceStartup, |
227 switches::kUseGL, | 226 switches::kUseGL, |
228 switches::kForceDeviceScaleFactor, | 227 switches::kForceDeviceScaleFactor, |
229 #if defined(OS_MACOSX) | 228 #if defined(OS_MACOSX) |
230 switches::kDisableCoreAnimationPlugins, | 229 switches::kDisableCoreAnimationPlugins, |
231 switches::kEnableSandboxLogging, | 230 switches::kEnableSandboxLogging, |
232 #endif | 231 #endif |
233 }; | 232 }; |
234 | 233 |
235 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 234 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 428 |
430 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, | 429 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, |
431 ResourceContext** resource_context, | 430 ResourceContext** resource_context, |
432 net::URLRequestContext** request_context) { | 431 net::URLRequestContext** request_context) { |
433 *resource_context = | 432 *resource_context = |
434 resource_context_map_[request.origin_pid].resource_context; | 433 resource_context_map_[request.origin_pid].resource_context; |
435 *request_context = (*resource_context)->GetRequestContext(); | 434 *request_context = (*resource_context)->GetRequestContext(); |
436 } | 435 } |
437 | 436 |
438 } // namespace content | 437 } // namespace content |
OLD | NEW |