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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 #include "ppapi/proxy/ppb_opengles2_proxy.h" | 73 #include "ppapi/proxy/ppb_opengles2_proxy.h" |
74 #include "ppapi/proxy/ppb_pdf_proxy.h" | 74 #include "ppapi/proxy/ppb_pdf_proxy.h" |
75 #include "ppapi/proxy/ppb_surface_3d_proxy.h" | 75 #include "ppapi/proxy/ppb_surface_3d_proxy.h" |
76 #include "ppapi/proxy/ppb_testing_proxy.h" | 76 #include "ppapi/proxy/ppb_testing_proxy.h" |
77 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 77 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
78 #include "ppapi/proxy/ppb_url_request_info_proxy.h" | 78 #include "ppapi/proxy/ppb_url_request_info_proxy.h" |
79 #include "ppapi/proxy/ppb_url_response_info_proxy.h" | 79 #include "ppapi/proxy/ppb_url_response_info_proxy.h" |
80 #include "ppapi/proxy/ppb_url_util_proxy.h" | 80 #include "ppapi/proxy/ppb_url_util_proxy.h" |
81 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" | 81 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" |
82 #include "ppapi/proxy/ppb_var_proxy.h" | 82 #include "ppapi/proxy/ppb_var_proxy.h" |
| 83 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
83 #include "ppapi/proxy/ppp_class_proxy.h" | 84 #include "ppapi/proxy/ppp_class_proxy.h" |
84 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" | 85 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" |
85 #include "ppapi/proxy/ppp_input_event_proxy.h" | 86 #include "ppapi/proxy/ppp_input_event_proxy.h" |
86 #include "ppapi/proxy/ppp_instance_private_proxy.h" | 87 #include "ppapi/proxy/ppp_instance_private_proxy.h" |
87 #include "ppapi/proxy/ppp_instance_proxy.h" | 88 #include "ppapi/proxy/ppp_instance_proxy.h" |
| 89 #include "ppapi/proxy/ppp_video_decoder_proxy.h" |
88 #include "ppapi/proxy/var_serialization_rules.h" | 90 #include "ppapi/proxy/var_serialization_rules.h" |
89 | 91 |
90 namespace pp { | 92 namespace pp { |
91 namespace proxy { | 93 namespace proxy { |
92 | 94 |
93 namespace { | 95 namespace { |
94 | 96 |
95 struct InterfaceList { | 97 struct InterfaceList { |
96 InterfaceList(); | 98 InterfaceList(); |
97 | 99 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 AddPPB(PPB_PDF_Proxy::GetInfo()); | 156 AddPPB(PPB_PDF_Proxy::GetInfo()); |
155 AddPPB(PPB_Surface3D_Proxy::GetInfo()); | 157 AddPPB(PPB_Surface3D_Proxy::GetInfo()); |
156 AddPPB(PPB_Testing_Proxy::GetInfo()); | 158 AddPPB(PPB_Testing_Proxy::GetInfo()); |
157 AddPPB(PPB_URLLoader_Proxy::GetInfo()); | 159 AddPPB(PPB_URLLoader_Proxy::GetInfo()); |
158 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); | 160 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); |
159 AddPPB(PPB_URLRequestInfo_Proxy::GetInfo()); | 161 AddPPB(PPB_URLRequestInfo_Proxy::GetInfo()); |
160 AddPPB(PPB_URLResponseInfo_Proxy::GetInfo()); | 162 AddPPB(PPB_URLResponseInfo_Proxy::GetInfo()); |
161 AddPPB(PPB_URLUtil_Proxy::GetInfo()); | 163 AddPPB(PPB_URLUtil_Proxy::GetInfo()); |
162 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); | 164 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); |
163 AddPPB(PPB_Var_Proxy::GetInfo()); | 165 AddPPB(PPB_Var_Proxy::GetInfo()); |
| 166 AddPPB(PPB_VideoDecoder_Proxy::GetInfo()); |
164 | 167 |
165 #ifdef ENABLE_FLAPPER_HACKS | 168 #ifdef ENABLE_FLAPPER_HACKS |
166 AddPPB(PPB_Flash_NetConnector_Proxy::GetInfo()); | 169 AddPPB(PPB_Flash_NetConnector_Proxy::GetInfo()); |
167 #endif | 170 #endif |
168 | 171 |
169 // PPP (plugin) interfaces. | 172 // PPP (plugin) interfaces. |
170 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); | 173 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); |
171 AddPPP(PPP_InputEvent_Proxy::GetInfo()); | 174 AddPPP(PPP_InputEvent_Proxy::GetInfo()); |
172 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); | 175 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); |
173 AddPPP(PPP_Instance_Proxy::GetInfo1_0()); | 176 AddPPP(PPP_Instance_Proxy::GetInfo1_0()); |
| 177 AddPPP(PPP_VideoDecoder_Proxy::GetInfo()); |
174 } | 178 } |
175 | 179 |
176 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 180 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
177 DCHECK(name_to_plugin_info_.find(info->name) == | 181 DCHECK(name_to_plugin_info_.find(info->name) == |
178 name_to_plugin_info_.end()); | 182 name_to_plugin_info_.end()); |
179 DCHECK(info->id >= INTERFACE_ID_NONE && info->id < INTERFACE_ID_COUNT); | 183 DCHECK(info->id >= INTERFACE_ID_NONE && info->id < INTERFACE_ID_COUNT); |
180 | 184 |
181 name_to_plugin_info_[info->name] = info; | 185 name_to_plugin_info_[info->name] = info; |
182 } | 186 } |
183 | 187 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 return delegate()->GetIPCMessageLoop(); | 272 return delegate()->GetIPCMessageLoop(); |
269 } | 273 } |
270 | 274 |
271 void Dispatcher::AddIOThreadMessageFilter( | 275 void Dispatcher::AddIOThreadMessageFilter( |
272 IPC::ChannelProxy::MessageFilter* filter) { | 276 IPC::ChannelProxy::MessageFilter* filter) { |
273 channel()->AddFilter(filter); | 277 channel()->AddFilter(filter); |
274 } | 278 } |
275 | 279 |
276 } // namespace proxy | 280 } // namespace proxy |
277 } // namespace pp | 281 } // namespace pp |
OLD | NEW |