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); |
125 | 126 |
126 void RemoveSyncMessageStatusObserver(SyncMessageStatusObserver* obs); | 127 void RemoveSyncMessageStatusObserver(SyncMessageStatusObserver* obs); |
127 | 128 |
128 PP_Module pp_module_; | 129 PP_Module pp_module_; |
129 | 130 |
130 // Maps interface name to whether that interface is supported. If an interface | 131 // Maps interface name to whether that interface is supported. If an interface |
131 // name is not in the map, that implies that we haven't queried for it yet. | 132 // name is not in the map, that implies that we haven't queried for it yet. |
132 typedef base::hash_map<std::string, bool> PluginSupportedMap; | 133 typedef base::hash_map<std::string, bool> PluginSupportedMap; |
133 PluginSupportedMap plugin_supported_; | 134 PluginSupportedMap plugin_supported_; |
134 | 135 |
(...skipping 29 matching lines...) Expand all Loading... |
164 private: | 165 private: |
165 HostDispatcher* dispatcher_; | 166 HostDispatcher* dispatcher_; |
166 | 167 |
167 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); | 168 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); |
168 }; | 169 }; |
169 | 170 |
170 } // namespace proxy | 171 } // namespace proxy |
171 } // namespace ppapi | 172 } // namespace ppapi |
172 | 173 |
173 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ | 174 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ |
OLD | NEW |