OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/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 "chrome/plugin/plugin_thread.h" | |
14 #include "chrome/plugin/webplugin_delegate_stub.h" | |
15 #include "chrome/plugin/webplugin_proxy.h" | |
16 #include "content/common/child_process.h" | 13 #include "content/common/child_process.h" |
17 #include "content/common/content_switches.h" | 14 #include "content/common/content_switches.h" |
18 #include "content/common/plugin_messages.h" | 15 #include "content/common/plugin_messages.h" |
| 16 #include "content/plugin/plugin_thread.h" |
| 17 #include "content/plugin/webplugin_delegate_stub.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 |
26 namespace { | 26 namespace { |
27 | 27 |
28 class PluginReleaseTask : public Task { | 28 class PluginReleaseTask : public Task { |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } | 319 } |
320 | 320 |
321 bool PluginChannel::Init(MessageLoop* ipc_message_loop, bool create_pipe_now) { | 321 bool PluginChannel::Init(MessageLoop* ipc_message_loop, bool create_pipe_now) { |
322 if (!PluginChannelBase::Init(ipc_message_loop, create_pipe_now)) | 322 if (!PluginChannelBase::Init(ipc_message_loop, create_pipe_now)) |
323 return false; | 323 return false; |
324 | 324 |
325 channel_->AddFilter(filter_.get()); | 325 channel_->AddFilter(filter_.get()); |
326 return true; | 326 return true; |
327 } | 327 } |
328 | 328 |
OLD | NEW |