| 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/ppapi_plugin/ppapi_thread.h" | 5 #include "content/ppapi_plugin/ppapi_thread.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/crash_logging.h" | 10 #include "base/debug/crash_logging.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
| 13 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 18 #include "content/common/child_process.h" | 18 #include "content/common/child_process.h" |
| 19 #include "content/common/child_process_messages.h" | 19 #include "content/common/child_process_messages.h" |
| 20 #include "content/common/sandbox_util.h" |
| 20 #include "content/ppapi_plugin/broker_process_dispatcher.h" | 21 #include "content/ppapi_plugin/broker_process_dispatcher.h" |
| 21 #include "content/ppapi_plugin/plugin_process_dispatcher.h" | 22 #include "content/ppapi_plugin/plugin_process_dispatcher.h" |
| 22 #include "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h" | 23 #include "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h" |
| 23 #include "content/public/common/content_client.h" | 24 #include "content/public/common/content_client.h" |
| 24 #include "content/public/common/pepper_plugin_info.h" | 25 #include "content/public/common/pepper_plugin_info.h" |
| 25 #include "content/public/common/sandbox_init.h" | 26 #include "content/public/common/sandbox_init.h" |
| 26 #include "content/public/plugin/content_plugin_client.h" | 27 #include "content/public/plugin/content_plugin_client.h" |
| 27 #include "ipc/ipc_channel_handle.h" | 28 #include "ipc/ipc_channel_handle.h" |
| 28 #include "ipc/ipc_platform_file.h" | 29 #include "ipc/ipc_platform_file.h" |
| 29 #include "ipc/ipc_sync_channel.h" | 30 #include "ipc/ipc_sync_channel.h" |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 463 |
| 463 // plugin() is NULL when in-process. Which is fine, because this is | 464 // plugin() is NULL when in-process. Which is fine, because this is |
| 464 // just a hook for setting the process name. | 465 // just a hook for setting the process name. |
| 465 if (GetContentClient()->plugin()) { | 466 if (GetContentClient()->plugin()) { |
| 466 GetContentClient()->plugin()->PluginProcessStarted( | 467 GetContentClient()->plugin()->PluginProcessStarted( |
| 467 path.BaseName().RemoveExtension().LossyDisplayName()); | 468 path.BaseName().RemoveExtension().LossyDisplayName()); |
| 468 } | 469 } |
| 469 } | 470 } |
| 470 | 471 |
| 471 } // namespace content | 472 } // namespace content |
| OLD | NEW |