| 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<> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/base_switches.h" |
| 15 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 16 #include "base/file_path.h" | 17 #include "base/file_path.h" |
| 17 #include "base/file_util.h" | 18 #include "base/file_util.h" |
| 18 #include "base/logging.h" | 19 #include "base/logging.h" |
| 19 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 20 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 21 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
| 22 #include "content/browser/browser_thread.h" | 23 #include "content/browser/browser_thread.h" |
| 23 #include "content/browser/content_browser_client.h" | 24 #include "content/browser/content_browser_client.h" |
| 24 #include "content/browser/resolve_proxy_msg_helper.h" | 25 #include "content/browser/resolve_proxy_msg_helper.h" |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 } | 347 } |
| 347 } | 348 } |
| 348 | 349 |
| 349 void PluginProcessHost::OnChannelCreated( | 350 void PluginProcessHost::OnChannelCreated( |
| 350 const IPC::ChannelHandle& channel_handle) { | 351 const IPC::ChannelHandle& channel_handle) { |
| 351 Client* client = sent_requests_.front(); | 352 Client* client = sent_requests_.front(); |
| 352 | 353 |
| 353 client->OnChannelOpened(channel_handle); | 354 client->OnChannelOpened(channel_handle); |
| 354 sent_requests_.pop(); | 355 sent_requests_.pop(); |
| 355 } | 356 } |
| OLD | NEW |