| 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 #ifndef PPAPI_PROXY_HOST_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_HOST_DISPATCHER_H_ |
| 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ | 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual bool Send(IPC::Message* msg); | 74 virtual bool Send(IPC::Message* msg); |
| 75 | 75 |
| 76 // IPC::Channel::Listener. | 76 // IPC::Channel::Listener. |
| 77 virtual bool OnMessageReceived(const IPC::Message& msg); | 77 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 78 virtual void OnChannelError(); | 78 virtual void OnChannelError(); |
| 79 | 79 |
| 80 // Proxied version of calling GetInterface on the plugin. This will check | 80 // Proxied version of calling GetInterface on the plugin. This will check |
| 81 // if the plugin supports the given interface (with caching) and returns the | 81 // if the plugin supports the given interface (with caching) and returns the |
| 82 // pointer to the proxied interface if it is supported. Returns NULL if the | 82 // pointer to the proxied interface if it is supported. Returns NULL if the |
| 83 // given interface isn't supported by the plugin or the proxy. | 83 // given interface isn't supported by the plugin or the proxy. |
| 84 const void* GetProxiedInterface(const std::string& interface); | 84 const void* GetProxiedInterface(const std::string& iface); |
| 85 | 85 |
| 86 // Returns the proxy object associated with the given interface ID, creating | 86 // Returns the proxy object associated with the given interface ID, creating |
| 87 // it if necessary. This is used in cases where a proxy needs to access code | 87 // it if necessary. This is used in cases where a proxy needs to access code |
| 88 // in the proxy for another interface. It's assumed that the interface always | 88 // in the proxy for another interface. It's assumed that the interface always |
| 89 // exists, so this is only used for browser proxies. | 89 // exists, so this is only used for browser proxies. |
| 90 // | 90 // |
| 91 // Will return NULL if an interface isn't supported. | 91 // Will return NULL if an interface isn't supported. |
| 92 InterfaceProxy* GetOrCreatePPBInterfaceProxy(InterfaceID id); | 92 InterfaceProxy* GetOrCreatePPBInterfaceProxy(InterfaceID id); |
| 93 | 93 |
| 94 // See the value below. Call this when processing a scripting message from | 94 // See the value below. Call this when processing a scripting message from |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 private: | 151 private: |
| 152 HostDispatcher* dispatcher_; | 152 HostDispatcher* dispatcher_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); | 154 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace proxy | 157 } // namespace proxy |
| 158 } // namespace pp | 158 } // namespace pp |
| 159 | 159 |
| 160 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ | 160 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ |
| OLD | NEW |