| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INTERFACE_LIST_H_ | 5 #ifndef PPAPI_PROXY_INTERFACE_LIST_H_ |
| 6 #define PPAPI_PROXY_INTERFACE_LIST_H_ | 6 #define PPAPI_PROXY_INTERFACE_LIST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 : id(in_id), | 45 : id(in_id), |
| 46 iface(in_interface) { | 46 iface(in_interface) { |
| 47 } | 47 } |
| 48 | 48 |
| 49 ApiID id; | 49 ApiID id; |
| 50 const void* iface; | 50 const void* iface; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 typedef std::map<std::string, InterfaceInfo> NameToInterfaceInfoMap; | 53 typedef std::map<std::string, InterfaceInfo> NameToInterfaceInfoMap; |
| 54 | 54 |
| 55 #if !defined(OS_NACL) | |
| 56 // Registers the Flash-specific interfaces. | |
| 57 // | |
| 58 // TODO(brettw) these should be moved somewhere separately so we can compile | |
| 59 // the proxy for NaCl without Flash interface support. | |
| 60 void AddFlashInterfaces(); | |
| 61 #endif // !defined(OS_NACL) | |
| 62 | |
| 63 void AddProxy(ApiID id, InterfaceProxy::Factory factory); | 55 void AddProxy(ApiID id, InterfaceProxy::Factory factory); |
| 64 | 56 |
| 65 void AddPPB(const char* name, ApiID id, const void* iface); | 57 void AddPPB(const char* name, ApiID id, const void* iface); |
| 66 void AddPPP(const char* name, ApiID id, const void* iface); | 58 void AddPPP(const char* name, ApiID id, const void* iface); |
| 67 | 59 |
| 68 // Old-style add functions. These should be removed when the rest of the | 60 // Old-style add functions. These should be removed when the rest of the |
| 69 // proxies are converted over to using the new system. | 61 // proxies are converted over to using the new system. |
| 70 void AddPPB(const InterfaceProxy::Info* info); | 62 void AddPPB(const InterfaceProxy::Info* info); |
| 71 void AddPPP(const InterfaceProxy::Info* info); | 63 void AddPPP(const InterfaceProxy::Info* info); |
| 72 | 64 |
| 73 NameToInterfaceInfoMap name_to_browser_info_; | 65 NameToInterfaceInfoMap name_to_browser_info_; |
| 74 NameToInterfaceInfoMap name_to_plugin_info_; | 66 NameToInterfaceInfoMap name_to_plugin_info_; |
| 75 | 67 |
| 76 InterfaceProxy::Factory id_to_factory_[API_ID_COUNT]; | 68 InterfaceProxy::Factory id_to_factory_[API_ID_COUNT]; |
| 77 | 69 |
| 78 DISALLOW_COPY_AND_ASSIGN(InterfaceList); | 70 DISALLOW_COPY_AND_ASSIGN(InterfaceList); |
| 79 }; | 71 }; |
| 80 | 72 |
| 81 } // namespace proxy | 73 } // namespace proxy |
| 82 } // namespace ppapi | 74 } // namespace ppapi |
| 83 | 75 |
| 84 #endif // PPAPI_PROXY_INTERFACE_LIST_H_ | 76 #endif // PPAPI_PROXY_INTERFACE_LIST_H_ |
| 85 | 77 |
| OLD | NEW |