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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/process_util.h" | |
14 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
15 #include "content/browser/browser_child_process_host_impl.h" | 14 #include "content/browser/browser_child_process_host_impl.h" |
16 #include "content/browser/plugin_service_impl.h" | 15 #include "content/browser/plugin_service_impl.h" |
17 #include "content/browser/renderer_host/render_message_filter.h" | 16 #include "content/browser/renderer_host/render_message_filter.h" |
18 #include "content/common/child_process_host_impl.h" | 17 #include "content/common/child_process_host_impl.h" |
19 #include "content/common/child_process_messages.h" | 18 #include "content/common/child_process_messages.h" |
20 #include "content/public/browser/content_browser_client.h" | 19 #include "content/public/browser/content_browser_client.h" |
21 #include "content/public/common/content_constants.h" | 20 #include "content/public/common/content_constants.h" |
22 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
23 #include "content/public/common/pepper_plugin_info.h" | 22 #include "content/public/common/pepper_plugin_info.h" |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // sent_requests_ queue should be the one that the plugin just created. | 428 // sent_requests_ queue should be the one that the plugin just created. |
430 Client* client = sent_requests_.front(); | 429 Client* client = sent_requests_.front(); |
431 sent_requests_.pop(); | 430 sent_requests_.pop(); |
432 | 431 |
433 const ChildProcessData& data = process_->GetData(); | 432 const ChildProcessData& data = process_->GetData(); |
434 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle), | 433 client->OnPpapiChannelOpened(channel_handle, base::GetProcId(data.handle), |
435 data.id); | 434 data.id); |
436 } | 435 } |
437 | 436 |
438 } // namespace content | 437 } // namespace content |
OLD | NEW |