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<> |
11 #endif | 11 #endif |
12 | 12 |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/base_switches.h" | 15 #include "base/base_switches.h" |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/file_util.h" | |
19 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
20 #include "base/logging.h" | 19 #include "base/logging.h" |
21 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
22 #include "base/path_service.h" | 21 #include "base/path_service.h" |
23 #include "base/string_util.h" | 22 #include "base/string_util.h" |
24 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
25 #include "content/browser/browser_child_process_host_impl.h" | 24 #include "content/browser/browser_child_process_host_impl.h" |
26 #include "content/browser/gpu/gpu_data_manager_impl.h" | 25 #include "content/browser/gpu/gpu_data_manager_impl.h" |
27 #include "content/browser/plugin_service_impl.h" | 26 #include "content/browser/plugin_service_impl.h" |
28 #include "content/common/child_process_host_impl.h" | 27 #include "content/common/child_process_host_impl.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 void PluginProcessHost::OnChannelCreated( | 409 void PluginProcessHost::OnChannelCreated( |
411 const IPC::ChannelHandle& channel_handle) { | 410 const IPC::ChannelHandle& channel_handle) { |
412 Client* client = sent_requests_.front(); | 411 Client* client = sent_requests_.front(); |
413 | 412 |
414 if (client) | 413 if (client) |
415 client->OnChannelOpened(channel_handle); | 414 client->OnChannelOpened(channel_handle); |
416 sent_requests_.pop_front(); | 415 sent_requests_.pop_front(); |
417 } | 416 } |
418 | 417 |
419 } // namespace content | 418 } // namespace content |
OLD | NEW |