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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 switches::kEnableStatsTable, | 163 switches::kEnableStatsTable, |
164 switches::kFullMemoryCrashReport, | 164 switches::kFullMemoryCrashReport, |
165 switches::kLoggingLevel, | 165 switches::kLoggingLevel, |
166 #if defined(OS_CHROMEOS) | 166 #if defined(OS_CHROMEOS) |
167 switches::kLoginProfile, | 167 switches::kLoginProfile, |
168 #endif | 168 #endif |
169 switches::kLogPluginMessages, | 169 switches::kLogPluginMessages, |
170 switches::kMemoryProfiling, | 170 switches::kMemoryProfiling, |
171 switches::kNoSandbox, | 171 switches::kNoSandbox, |
172 switches::kPluginStartupDialog, | 172 switches::kPluginStartupDialog, |
173 switches::kSafePlugins, | |
174 switches::kSilentDumpOnDCHECK, | 173 switches::kSilentDumpOnDCHECK, |
175 switches::kTestSandbox, | 174 switches::kTestSandbox, |
176 switches::kUseGL, | 175 switches::kUseGL, |
177 switches::kUserAgent, | 176 switches::kUserAgent, |
178 switches::kUserDataDir, | 177 switches::kUserDataDir, |
179 switches::kV, | 178 switches::kV, |
180 }; | 179 }; |
181 | 180 |
182 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 181 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
183 arraysize(kSwitchNames)); | 182 arraysize(kSwitchNames)); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 } | 326 } |
328 } | 327 } |
329 | 328 |
330 void PluginProcessHost::OnChannelCreated( | 329 void PluginProcessHost::OnChannelCreated( |
331 const IPC::ChannelHandle& channel_handle) { | 330 const IPC::ChannelHandle& channel_handle) { |
332 Client* client = sent_requests_.front(); | 331 Client* client = sent_requests_.front(); |
333 | 332 |
334 client->OnChannelOpened(channel_handle); | 333 client->OnChannelOpened(channel_handle); |
335 sent_requests_.pop(); | 334 sent_requests_.pop(); |
336 } | 335 } |
OLD | NEW |