| 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/renderer/plugin_channel_host.h" | 5 #include "content/renderer/plugin_channel_host.h" |
| 6 | 6 |
| 7 #include "content/common/child_process.h" | 7 #include "content/common/child_process.h" |
| 8 #include "content/common/npobject_base.h" | 8 #include "content/common/npobject_base.h" |
| 9 #include "content/common/plugin_messages.h" | 9 #include "content/common/plugin_messages.h" |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 IPC_MESSAGE_UNHANDLED(handled = false) | 127 IPC_MESSAGE_UNHANDLED(handled = false) |
| 128 IPC_END_MESSAGE_MAP() | 128 IPC_END_MESSAGE_MAP() |
| 129 DCHECK(handled); | 129 DCHECK(handled); |
| 130 return handled; | 130 return handled; |
| 131 } | 131 } |
| 132 | 132 |
| 133 void PluginChannelHost::OnSetException(const std::string& message) { | 133 void PluginChannelHost::OnSetException(const std::string& message) { |
| 134 WebKit::WebBindings::setException(NULL, message.c_str()); | 134 WebKit::WebBindings::setException(NULL, message.c_str()); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void PluginChannelHost::OnPluginShuttingDown(const IPC::Message& message) { | 137 void PluginChannelHost::OnPluginShuttingDown() { |
| 138 expecting_shutdown_ = true; | 138 expecting_shutdown_ = true; |
| 139 } | 139 } |
| 140 | 140 |
| 141 void PluginChannelHost::OnChannelError() { | 141 void PluginChannelHost::OnChannelError() { |
| 142 NPChannelBase::OnChannelError(); | 142 NPChannelBase::OnChannelError(); |
| 143 | 143 |
| 144 for (ProxyMap::iterator iter = proxies_.begin(); | 144 for (ProxyMap::iterator iter = proxies_.begin(); |
| 145 iter != proxies_.end(); iter++) { | 145 iter != proxies_.end(); iter++) { |
| 146 iter->second->OnChannelError(); | 146 iter->second->OnChannelError(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 proxies_.clear(); | 149 proxies_.clear(); |
| 150 } | 150 } |
| OLD | NEW |