Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Side by Side Diff: ppapi/proxy/dispatcher.cc

Issue 7545014: Implement PPAPI VideoDecode out-of-process support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "ppapi/proxy/ppb_opengles2_proxy.h" 72 #include "ppapi/proxy/ppb_opengles2_proxy.h"
73 #include "ppapi/proxy/ppb_pdf_proxy.h" 73 #include "ppapi/proxy/ppb_pdf_proxy.h"
74 #include "ppapi/proxy/ppb_surface_3d_proxy.h" 74 #include "ppapi/proxy/ppb_surface_3d_proxy.h"
75 #include "ppapi/proxy/ppb_testing_proxy.h" 75 #include "ppapi/proxy/ppb_testing_proxy.h"
76 #include "ppapi/proxy/ppb_url_loader_proxy.h" 76 #include "ppapi/proxy/ppb_url_loader_proxy.h"
77 #include "ppapi/proxy/ppb_url_request_info_proxy.h" 77 #include "ppapi/proxy/ppb_url_request_info_proxy.h"
78 #include "ppapi/proxy/ppb_url_response_info_proxy.h" 78 #include "ppapi/proxy/ppb_url_response_info_proxy.h"
79 #include "ppapi/proxy/ppb_url_util_proxy.h" 79 #include "ppapi/proxy/ppb_url_util_proxy.h"
80 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" 80 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
81 #include "ppapi/proxy/ppb_var_proxy.h" 81 #include "ppapi/proxy/ppb_var_proxy.h"
82 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
82 #include "ppapi/proxy/ppp_class_proxy.h" 83 #include "ppapi/proxy/ppp_class_proxy.h"
83 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" 84 #include "ppapi/proxy/ppp_graphics_3d_proxy.h"
84 #include "ppapi/proxy/ppp_input_event_proxy.h" 85 #include "ppapi/proxy/ppp_input_event_proxy.h"
85 #include "ppapi/proxy/ppp_instance_private_proxy.h" 86 #include "ppapi/proxy/ppp_instance_private_proxy.h"
86 #include "ppapi/proxy/ppp_instance_proxy.h" 87 #include "ppapi/proxy/ppp_instance_proxy.h"
88 #include "ppapi/proxy/ppp_video_decoder_proxy.h"
87 #include "ppapi/proxy/var_serialization_rules.h" 89 #include "ppapi/proxy/var_serialization_rules.h"
88 90
89 namespace pp { 91 namespace pp {
90 namespace proxy { 92 namespace proxy {
91 93
92 namespace { 94 namespace {
93 95
94 struct InterfaceList { 96 struct InterfaceList {
95 InterfaceList(); 97 InterfaceList();
96 98
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 AddPPB(PPB_PDF_Proxy::GetInfo()); 154 AddPPB(PPB_PDF_Proxy::GetInfo());
153 AddPPB(PPB_Surface3D_Proxy::GetInfo()); 155 AddPPB(PPB_Surface3D_Proxy::GetInfo());
154 AddPPB(PPB_Testing_Proxy::GetInfo()); 156 AddPPB(PPB_Testing_Proxy::GetInfo());
155 AddPPB(PPB_URLLoader_Proxy::GetInfo()); 157 AddPPB(PPB_URLLoader_Proxy::GetInfo());
156 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); 158 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo());
157 AddPPB(PPB_URLRequestInfo_Proxy::GetInfo()); 159 AddPPB(PPB_URLRequestInfo_Proxy::GetInfo());
158 AddPPB(PPB_URLResponseInfo_Proxy::GetInfo()); 160 AddPPB(PPB_URLResponseInfo_Proxy::GetInfo());
159 AddPPB(PPB_URLUtil_Proxy::GetInfo()); 161 AddPPB(PPB_URLUtil_Proxy::GetInfo());
160 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); 162 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo());
161 AddPPB(PPB_Var_Proxy::GetInfo()); 163 AddPPB(PPB_Var_Proxy::GetInfo());
164 AddPPB(PPB_VideoDecoder_Proxy::GetInfo());
162 165
163 #ifdef ENABLE_FLAPPER_HACKS 166 #ifdef ENABLE_FLAPPER_HACKS
164 AddPPB(PPB_Flash_NetConnector_Proxy::GetInfo()); 167 AddPPB(PPB_Flash_NetConnector_Proxy::GetInfo());
165 #endif 168 #endif
166 169
167 // PPP (plugin) interfaces. 170 // PPP (plugin) interfaces.
168 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); 171 AddPPP(PPP_Graphics3D_Proxy::GetInfo());
169 AddPPP(PPP_InputEvent_Proxy::GetInfo()); 172 AddPPP(PPP_InputEvent_Proxy::GetInfo());
170 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); 173 AddPPP(PPP_Instance_Private_Proxy::GetInfo());
171 AddPPP(PPP_Instance_Proxy::GetInfo1_0()); 174 AddPPP(PPP_Instance_Proxy::GetInfo1_0());
175 AddPPP(PPP_VideoDecoder_Proxy::GetInfo());
172 } 176 }
173 177
174 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 178 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
175 DCHECK(name_to_plugin_info_.find(info->name) == 179 DCHECK(name_to_plugin_info_.find(info->name) ==
176 name_to_plugin_info_.end()); 180 name_to_plugin_info_.end());
177 DCHECK(info->id >= INTERFACE_ID_NONE && info->id < INTERFACE_ID_COUNT); 181 DCHECK(info->id >= INTERFACE_ID_NONE && info->id < INTERFACE_ID_COUNT);
178 182
179 name_to_plugin_info_[info->name] = info; 183 name_to_plugin_info_[info->name] = info;
180 } 184 }
181 185
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 return delegate()->GetIPCMessageLoop(); 270 return delegate()->GetIPCMessageLoop();
267 } 271 }
268 272
269 void Dispatcher::AddIOThreadMessageFilter( 273 void Dispatcher::AddIOThreadMessageFilter(
270 IPC::ChannelProxy::MessageFilter* filter) { 274 IPC::ChannelProxy::MessageFilter* filter) {
271 channel()->AddFilter(filter); 275 channel()->AddFilter(filter);
272 } 276 }
273 277
274 } // namespace proxy 278 } // namespace proxy
275 } // namespace pp 279 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698