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/renderer/plugin_channel_host.h" | 5 #include "chrome/renderer/plugin_channel_host.h" |
6 | 6 |
7 #include "chrome/plugin/npobject_base.h" | |
8 #include "content/common/plugin_messages.h" | 7 #include "content/common/plugin_messages.h" |
| 8 #include "content/plugin/npobject_base.h" |
9 | 9 |
10 #if defined(OS_POSIX) | 10 #if defined(OS_POSIX) |
11 #include "ipc/ipc_channel_posix.h" | 11 #include "ipc/ipc_channel_posix.h" |
12 #endif | 12 #endif |
13 | 13 |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
15 | 15 |
16 // A simple MessageFilter that will ignore all messages and respond to sync | 16 // A simple MessageFilter that will ignore all messages and respond to sync |
17 // messages with an error when is_listening_ is false. | 17 // messages with an error when is_listening_ is false. |
18 class IsListeningFilter : public IPC::ChannelProxy::MessageFilter { | 18 class IsListeningFilter : public IPC::ChannelProxy::MessageFilter { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 void PluginChannelHost::OnChannelError() { | 136 void PluginChannelHost::OnChannelError() { |
137 PluginChannelBase::OnChannelError(); | 137 PluginChannelBase::OnChannelError(); |
138 | 138 |
139 for (ProxyMap::iterator iter = proxies_.begin(); | 139 for (ProxyMap::iterator iter = proxies_.begin(); |
140 iter != proxies_.end(); iter++) { | 140 iter != proxies_.end(); iter++) { |
141 iter->second->OnChannelError(); | 141 iter->second->OnChannelError(); |
142 } | 142 } |
143 | 143 |
144 proxies_.clear(); | 144 proxies_.clear(); |
145 } | 145 } |
OLD | NEW |