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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 cmd_line->AppendSwitchPath(switches::kPluginPath, info.path); | 188 cmd_line->AppendSwitchPath(switches::kPluginPath, info.path); |
189 | 189 |
190 // Propagate the following switches to the plugin command line (along with | 190 // Propagate the following switches to the plugin command line (along with |
191 // any associated values) if present in the browser command line | 191 // any associated values) if present in the browser command line |
192 static const char* const kSwitchNames[] = { | 192 static const char* const kSwitchNames[] = { |
193 switches::kDisableBreakpad, | 193 switches::kDisableBreakpad, |
194 switches::kDisableDirectNPAPIRequests, | 194 switches::kDisableDirectNPAPIRequests, |
195 switches::kEnableStatsTable, | 195 switches::kEnableStatsTable, |
196 switches::kFullMemoryCrashReport, | 196 switches::kFullMemoryCrashReport, |
197 switches::kLoggingLevel, | 197 switches::kLoggingLevel, |
| 198 switches::kLogPluginMessages, |
198 switches::kNoSandbox, | 199 switches::kNoSandbox, |
199 switches::kPluginStartupDialog, | 200 switches::kPluginStartupDialog, |
200 switches::kTestSandbox, | 201 switches::kTestSandbox, |
201 switches::kTraceStartup, | 202 switches::kTraceStartup, |
202 switches::kUseGL, | 203 switches::kUseGL, |
203 #if defined(OS_MACOSX) | 204 #if defined(OS_MACOSX) |
204 switches::kDisableCoreAnimationPlugins, | 205 switches::kDisableCoreAnimationPlugins, |
205 switches::kEnableSandboxLogging, | 206 switches::kEnableSandboxLogging, |
206 #endif | 207 #endif |
207 #if defined(OS_WIN) | 208 #if defined(OS_WIN) |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 | 421 |
421 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, | 422 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, |
422 ResourceContext** resource_context, | 423 ResourceContext** resource_context, |
423 net::URLRequestContext** request_context) { | 424 net::URLRequestContext** request_context) { |
424 *resource_context = | 425 *resource_context = |
425 resource_context_map_[request.origin_pid].resource_context; | 426 resource_context_map_[request.origin_pid].resource_context; |
426 *request_context = (*resource_context)->GetRequestContext(); | 427 *request_context = (*resource_context)->GetRequestContext(); |
427 } | 428 } |
428 | 429 |
429 } // namespace content | 430 } // namespace content |
OLD | NEW |