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 #include "ppapi/proxy/dispatcher.h" | 5 #include "ppapi/proxy/dispatcher.h" |
6 | 6 |
7 #include <string.h> // For memset. | 7 #include <string.h> // For memset. |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 AddPPB(PPB_Flash_Clipboard_Proxy::GetInfo()); | 132 AddPPB(PPB_Flash_Clipboard_Proxy::GetInfo()); |
133 AddPPB(PPB_Flash_File_FileRef_Proxy::GetInfo()); | 133 AddPPB(PPB_Flash_File_FileRef_Proxy::GetInfo()); |
134 AddPPB(PPB_Flash_File_ModuleLocal_Proxy::GetInfo()); | 134 AddPPB(PPB_Flash_File_ModuleLocal_Proxy::GetInfo()); |
135 AddPPB(PPB_Flash_Proxy::GetInfo()); | 135 AddPPB(PPB_Flash_Proxy::GetInfo()); |
136 AddPPB(PPB_Flash_Menu_Proxy::GetInfo()); | 136 AddPPB(PPB_Flash_Menu_Proxy::GetInfo()); |
137 AddPPB(PPB_Flash_TCPSocket_Proxy::GetInfo()); | 137 AddPPB(PPB_Flash_TCPSocket_Proxy::GetInfo()); |
138 AddPPB(PPB_Font_Proxy::GetInfo()); | 138 AddPPB(PPB_Font_Proxy::GetInfo()); |
139 AddPPB(PPB_Graphics2D_Proxy::GetInfo()); | 139 AddPPB(PPB_Graphics2D_Proxy::GetInfo()); |
140 AddPPB(PPB_ImageData_Proxy::GetInfo()); | 140 AddPPB(PPB_ImageData_Proxy::GetInfo()); |
141 AddPPB(PPB_InputEvent_Proxy::GetInfo()); | 141 AddPPB(PPB_InputEvent_Proxy::GetInfo()); |
142 AddPPB(PPB_Instance_Proxy::GetInfo0_4()); | |
143 AddPPB(PPB_Instance_Proxy::GetInfo0_5()); | 142 AddPPB(PPB_Instance_Proxy::GetInfo0_5()); |
144 AddPPB(PPB_Instance_Proxy::GetInfo1_0()); | 143 AddPPB(PPB_Instance_Proxy::GetInfo1_0()); |
145 AddPPB(PPB_Instance_Proxy::GetInfoFullscreen()); | 144 AddPPB(PPB_Instance_Proxy::GetInfoFullscreen()); |
146 AddPPB(PPB_Instance_Proxy::GetInfoMessaging()); | 145 AddPPB(PPB_Instance_Proxy::GetInfoMessaging()); |
147 AddPPB(PPB_Instance_Proxy::GetInfoPrivate()); | 146 AddPPB(PPB_Instance_Proxy::GetInfoPrivate()); |
148 AddPPB(PPB_Memory_Proxy::GetInfo()); | 147 AddPPB(PPB_Memory_Proxy::GetInfo()); |
149 AddPPB(PPB_OpenGLES2_Proxy::GetInfo()); | 148 AddPPB(PPB_OpenGLES2_Proxy::GetInfo()); |
150 AddPPB(PPB_PDF_Proxy::GetInfo()); | 149 AddPPB(PPB_PDF_Proxy::GetInfo()); |
151 AddPPB(PPB_Surface3D_Proxy::GetInfo()); | 150 AddPPB(PPB_Surface3D_Proxy::GetInfo()); |
152 AddPPB(PPB_Testing_Proxy::GetInfo()); | 151 AddPPB(PPB_Testing_Proxy::GetInfo()); |
153 AddPPB(PPB_URLLoader_Proxy::GetInfo()); | 152 AddPPB(PPB_URLLoader_Proxy::GetInfo()); |
154 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); | 153 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); |
155 AddPPB(PPB_URLRequestInfo_Proxy::GetInfo()); | 154 AddPPB(PPB_URLRequestInfo_Proxy::GetInfo()); |
156 AddPPB(PPB_URLResponseInfo_Proxy::GetInfo()); | 155 AddPPB(PPB_URLResponseInfo_Proxy::GetInfo()); |
157 AddPPB(PPB_URLUtil_Proxy::GetInfo()); | 156 AddPPB(PPB_URLUtil_Proxy::GetInfo()); |
158 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); | 157 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); |
159 AddPPB(PPB_Var_Proxy::GetInfo()); | 158 AddPPB(PPB_Var_Proxy::GetInfo()); |
160 | 159 |
161 #ifdef ENABLE_FLAPPER_HACKS | 160 #ifdef ENABLE_FLAPPER_HACKS |
162 AddPPB(PPB_Flash_NetConnector_Proxy::GetInfo()); | 161 AddPPB(PPB_Flash_NetConnector_Proxy::GetInfo()); |
163 #endif | 162 #endif |
164 | 163 |
165 // PPP (plugin) interfaces. | 164 // PPP (plugin) interfaces. |
166 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); | 165 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); |
167 AddPPP(PPP_InputEvent_Proxy::GetInfo()); | 166 AddPPP(PPP_InputEvent_Proxy::GetInfo()); |
168 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); | 167 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); |
169 AddPPP(PPP_Instance_Proxy::GetInfo0_4()); | |
170 AddPPP(PPP_Instance_Proxy::GetInfo0_5()); | 168 AddPPP(PPP_Instance_Proxy::GetInfo0_5()); |
171 } | 169 } |
172 | 170 |
173 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 171 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
174 DCHECK(name_to_plugin_info_.find(info->name) == | 172 DCHECK(name_to_plugin_info_.find(info->name) == |
175 name_to_plugin_info_.end()); | 173 name_to_plugin_info_.end()); |
176 DCHECK(info->id >= INTERFACE_ID_NONE && info->id < INTERFACE_ID_COUNT); | 174 DCHECK(info->id >= INTERFACE_ID_NONE && info->id < INTERFACE_ID_COUNT); |
177 | 175 |
178 name_to_plugin_info_[info->name] = info; | 176 name_to_plugin_info_[info->name] = info; |
179 } | 177 } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 return delegate()->GetIPCMessageLoop(); | 263 return delegate()->GetIPCMessageLoop(); |
266 } | 264 } |
267 | 265 |
268 void Dispatcher::AddIOThreadMessageFilter( | 266 void Dispatcher::AddIOThreadMessageFilter( |
269 IPC::ChannelProxy::MessageFilter* filter) { | 267 IPC::ChannelProxy::MessageFilter* filter) { |
270 channel()->AddFilter(filter); | 268 channel()->AddFilter(filter); |
271 } | 269 } |
272 | 270 |
273 } // namespace proxy | 271 } // namespace proxy |
274 } // namespace pp | 272 } // namespace pp |
OLD | NEW |