OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 switches::kEnableLogging, | 215 switches::kEnableLogging, |
216 switches::kDisableLogging, | 216 switches::kDisableLogging, |
217 switches::kLoggingLevel, | 217 switches::kLoggingLevel, |
218 switches::kLogPluginMessages, | 218 switches::kLogPluginMessages, |
219 switches::kUserDataDir, | 219 switches::kUserDataDir, |
220 switches::kEnableDCHECK, | 220 switches::kEnableDCHECK, |
221 switches::kSilentDumpOnDCHECK, | 221 switches::kSilentDumpOnDCHECK, |
222 switches::kMemoryProfiling, | 222 switches::kMemoryProfiling, |
223 switches::kUseLowFragHeapCrt, | 223 switches::kUseLowFragHeapCrt, |
224 switches::kEnableStatsTable, | 224 switches::kEnableStatsTable, |
225 switches::kEnableGPUPlugin, | |
226 switches::kUseGL, | 225 switches::kUseGL, |
227 #if defined(OS_CHROMEOS) | 226 #if defined(OS_CHROMEOS) |
228 switches::kLoginProfile, | 227 switches::kLoginProfile, |
229 #endif | 228 #endif |
230 }; | 229 }; |
231 | 230 |
232 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 231 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
233 arraysize(kSwitchNames)); | 232 arraysize(kSwitchNames)); |
234 | 233 |
235 // If specified, prepend a launcher program to the command line. | 234 // If specified, prepend a launcher program to the command line. |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 const std::vector<uint8>& data) { | 474 const std::vector<uint8>& data) { |
476 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 475 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
477 | 476 |
478 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); | 477 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); |
479 if (chrome_plugin) { | 478 if (chrome_plugin) { |
480 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); | 479 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); |
481 uint32 data_len = static_cast<uint32>(data.size()); | 480 uint32 data_len = static_cast<uint32>(data.size()); |
482 chrome_plugin->functions().on_message(data_ptr, data_len); | 481 chrome_plugin->functions().on_message(data_ptr, data_len); |
483 } | 482 } |
484 } | 483 } |
OLD | NEW |