| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ | 5 #ifndef CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ |
| 6 #define CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ | 6 #define CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "chrome/plugin/plugin_channel_base.h" | 9 #include "chrome/plugin/plugin_channel_base.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 PluginChannelBase::Broadcast(message); | 35 PluginChannelBase::Broadcast(message); |
| 36 } | 36 } |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // Called on the render thread | 39 // Called on the render thread |
| 40 PluginChannelHost(); | 40 PluginChannelHost(); |
| 41 ~PluginChannelHost(); | 41 ~PluginChannelHost(); |
| 42 | 42 |
| 43 static PluginChannelBase* ClassFactory() { return new PluginChannelHost(); } | 43 static PluginChannelBase* ClassFactory() { return new PluginChannelHost(); } |
| 44 | 44 |
| 45 void OnControlMessageReceived(const IPC::Message& message); |
| 46 void OnSetException(const std::string& message); |
| 47 |
| 45 // Keep track of all the registered WebPluginDelegeProxies to | 48 // Keep track of all the registered WebPluginDelegeProxies to |
| 46 // inform about OnChannelError | 49 // inform about OnChannelError |
| 47 typedef base::hash_map<int, IPC::Channel::Listener*> ProxyMap; | 50 typedef base::hash_map<int, IPC::Channel::Listener*> ProxyMap; |
| 48 ProxyMap proxies_; | 51 ProxyMap proxies_; |
| 49 | 52 |
| 50 // An IPC MessageFilter that can be told to filter out all messages. This is | 53 // An IPC MessageFilter that can be told to filter out all messages. This is |
| 51 // used when the JS debugger is attached in order to avoid browser hangs. | 54 // used when the JS debugger is attached in order to avoid browser hangs. |
| 52 scoped_refptr<IsListeningFilter> is_listening_filter_; | 55 scoped_refptr<IsListeningFilter> is_listening_filter_; |
| 53 | 56 |
| 54 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelHost); | 57 DISALLOW_EVIL_CONSTRUCTORS(PluginChannelHost); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 #endif // CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ | 60 #endif // CHROME_RENDERER_PLUGIN_CHANNEL_HOST_H_ |
| OLD | NEW |