| 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_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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 protected: | 116 protected: |
| 117 // Overridden from Dispatcher. | 117 // Overridden from Dispatcher. |
| 118 virtual void OnInvalidMessageReceived(); | 118 virtual void OnInvalidMessageReceived(); |
| 119 | 119 |
| 120 private: | 120 private: |
| 121 void OnHostMsgLogWithSource(PP_Instance instance, | 121 void OnHostMsgLogWithSource(PP_Instance instance, |
| 122 int int_log_level, | 122 int int_log_level, |
| 123 const std::string& source, | 123 const std::string& source, |
| 124 const std::string& value); | 124 const std::string& value); |
| 125 void OnHostMsgPluginSupportsInterface(const std::string& interface_name); | |
| 126 | 125 |
| 127 void RemoveSyncMessageStatusObserver(SyncMessageStatusObserver* obs); | 126 void RemoveSyncMessageStatusObserver(SyncMessageStatusObserver* obs); |
| 128 | 127 |
| 129 PP_Module pp_module_; | 128 PP_Module pp_module_; |
| 130 | 129 |
| 131 // Maps interface name to whether that interface is supported. If an interface | 130 // Maps interface name to whether that interface is supported. If an interface |
| 132 // name is not in the map, that implies that we haven't queried for it yet. | 131 // name is not in the map, that implies that we haven't queried for it yet. |
| 133 typedef base::hash_map<std::string, bool> PluginSupportedMap; | 132 typedef base::hash_map<std::string, bool> PluginSupportedMap; |
| 134 PluginSupportedMap plugin_supported_; | 133 PluginSupportedMap plugin_supported_; |
| 135 | 134 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 165 private: | 164 private: |
| 166 HostDispatcher* dispatcher_; | 165 HostDispatcher* dispatcher_; |
| 167 | 166 |
| 168 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); | 167 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); |
| 169 }; | 168 }; |
| 170 | 169 |
| 171 } // namespace proxy | 170 } // namespace proxy |
| 172 } // namespace ppapi | 171 } // namespace ppapi |
| 173 | 172 |
| 174 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ | 173 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ |
| OLD | NEW |