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/plugin/plugin_channel.h" | 5 #include "content/plugin/plugin_channel.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "content/common/child_process.h" | 13 #include "content/common/child_process.h" |
14 #include "content/common/content_switches.h" | |
15 #include "content/common/plugin_messages.h" | 14 #include "content/common/plugin_messages.h" |
| 15 #include "content/public/common/content_switches.h" |
16 #include "content/plugin/plugin_thread.h" | 16 #include "content/plugin/plugin_thread.h" |
17 #include "content/plugin/webplugin_delegate_stub.h" | 17 #include "content/plugin/webplugin_delegate_stub.h" |
18 #include "content/plugin/webplugin_proxy.h" | 18 #include "content/plugin/webplugin_proxy.h" |
19 #include "webkit/plugins/npapi/plugin_instance.h" | 19 #include "webkit/plugins/npapi/plugin_instance.h" |
20 | 20 |
21 #if defined(OS_POSIX) | 21 #if defined(OS_POSIX) |
22 #include "base/eintr_wrapper.h" | 22 #include "base/eintr_wrapper.h" |
23 #include "ipc/ipc_channel_posix.h" | 23 #include "ipc/ipc_channel_posix.h" |
24 #endif | 24 #endif |
25 | 25 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 bool PluginChannel::Init(base::MessageLoopProxy* ipc_message_loop, | 327 bool PluginChannel::Init(base::MessageLoopProxy* ipc_message_loop, |
328 bool create_pipe_now, | 328 bool create_pipe_now, |
329 base::WaitableEvent* shutdown_event) { | 329 base::WaitableEvent* shutdown_event) { |
330 if (!NPChannelBase::Init(ipc_message_loop, create_pipe_now, shutdown_event)) | 330 if (!NPChannelBase::Init(ipc_message_loop, create_pipe_now, shutdown_event)) |
331 return false; | 331 return false; |
332 | 332 |
333 channel_->AddFilter(filter_.get()); | 333 channel_->AddFilter(filter_.get()); |
334 return true; | 334 return true; |
335 } | 335 } |
336 | 336 |
OLD | NEW |