Index: ppapi/proxy/host_dispatcher.h |
diff --git a/ppapi/proxy/host_dispatcher.h b/ppapi/proxy/host_dispatcher.h |
index 55ba56bc76b6593acc3611a4ee94623dede5c0f1..3d3ff98245cb317183d4d276d4e9c9dfb987dd4c 100644 |
--- a/ppapi/proxy/host_dispatcher.h |
+++ b/ppapi/proxy/host_dispatcher.h |
@@ -110,12 +110,14 @@ class HostDispatcher : public Dispatcher { |
PP_Module pp_module_; |
- enum PluginInterfaceSupport { |
- INTERFACE_UNQUERIED = 0, // Must be 0 so memset(0) will clear the list. |
+ enum PluginIFSupport { |
INTERFACE_SUPPORTED, |
INTERFACE_UNSUPPORTED |
}; |
- PluginInterfaceSupport plugin_interface_support_[INTERFACE_ID_COUNT]; |
+ typedef std::map<std::string, PluginIFSupport> PluginIFSupportMap; |
+ // Maps interface name to whether that interface is supported. If an interface |
+ // name is not in the map, that implies that we haven't queried for it yet. |
+ std::map<std::string, PluginIFSupport> plugin_if_support_; |
brettw
2011/06/24 00:35:24
I guess I would have just done:
std::map<std::stri
dmichael (off chromium)
2011/06/29 16:13:57
Good suggestion. Done.
|
// All target proxies currently created. These are ones that receive |
// messages. They are created on demand when we receive messages. |