| 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_PLUGIN_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
| 6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Returns the WebKitForwarding object used to forward events to WebKit. | 129 // Returns the WebKitForwarding object used to forward events to WebKit. |
| 130 WebKitForwarding* GetWebKitForwarding(); | 130 WebKitForwarding* GetWebKitForwarding(); |
| 131 | 131 |
| 132 // Returns the Preferences. | 132 // Returns the Preferences. |
| 133 const Preferences& preferences() const { return preferences_; } | 133 const Preferences& preferences() const { return preferences_; } |
| 134 | 134 |
| 135 // Returns the "new-style" function API for the given interface ID, creating | 135 // Returns the "new-style" function API for the given interface ID, creating |
| 136 // it if necessary. | 136 // it if necessary. |
| 137 // TODO(brettw) this is in progress. It should be merged with the target | 137 // TODO(brettw) this is in progress. It should be merged with the target |
| 138 // proxies so there is one list to consult. | 138 // proxies so there is one list to consult. |
| 139 FunctionGroupBase* GetFunctionAPI(InterfaceID id); | 139 FunctionGroupBase* GetFunctionAPI(ApiID id); |
| 140 | 140 |
| 141 uint32 plugin_dispatcher_id() const { return plugin_dispatcher_id_; } | 141 uint32 plugin_dispatcher_id() const { return plugin_dispatcher_id_; } |
| 142 | 142 |
| 143 private: | 143 private: |
| 144 friend class PluginDispatcherTest; | 144 friend class PluginDispatcherTest; |
| 145 | 145 |
| 146 // Notifies all live instances that they're now closed. This is used when | 146 // Notifies all live instances that they're now closed. This is used when |
| 147 // a renderer crashes or some other error is received. | 147 // a renderer crashes or some other error is received. |
| 148 void ForceFreeAllInstances(); | 148 void ForceFreeAllInstances(); |
| 149 | 149 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 170 | 170 |
| 171 uint32 plugin_dispatcher_id_; | 171 uint32 plugin_dispatcher_id_; |
| 172 | 172 |
| 173 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); | 173 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace proxy | 176 } // namespace proxy |
| 177 } // namespace ppapi | 177 } // namespace ppapi |
| 178 | 178 |
| 179 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 179 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
| OLD | NEW |