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/ppapi_plugin_process_host.h" | 5 #include "content/browser/ppapi_plugin_process_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/base_switches.h" | 12 #include "base/base_switches.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ptr_util.h" |
16 #include "base/metrics/field_trial.h" | 17 #include "base/metrics/field_trial.h" |
17 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 #include "content/browser/browser_child_process_host_impl.h" | 21 #include "content/browser/browser_child_process_host_impl.h" |
21 #include "content/browser/plugin_service_impl.h" | 22 #include "content/browser/plugin_service_impl.h" |
22 #include "content/browser/renderer_host/render_message_filter.h" | 23 #include "content/browser/renderer_host/render_message_filter.h" |
23 #include "content/common/child_process_host_impl.h" | 24 #include "content/common/child_process_host_impl.h" |
24 #include "content/common/child_process_messages.h" | 25 #include "content/common/child_process_messages.h" |
25 #include "content/common/content_switches_internal.h" | 26 #include "content/common/content_switches_internal.h" |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 // sent_requests_ queue should be the one that the plugin just created. | 550 // sent_requests_ queue should be the one that the plugin just created. |
550 Client* client = sent_requests_.front(); | 551 Client* client = sent_requests_.front(); |
551 sent_requests_.pop(); | 552 sent_requests_.pop(); |
552 | 553 |
553 const ChildProcessData& data = process_->GetData(); | 554 const ChildProcessData& data = process_->GetData(); |
554 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle), | 555 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle), |
555 data.id); | 556 data.id); |
556 } | 557 } |
557 | 558 |
558 } // namespace content | 559 } // namespace content |
OLD | NEW |