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

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

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | ppapi/proxy/ppapi_messages_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "ppapi/proxy/ppb_instance_proxy.h" 48 #include "ppapi/proxy/ppb_instance_proxy.h"
49 #include "ppapi/proxy/ppb_pdf_proxy.h" 49 #include "ppapi/proxy/ppb_pdf_proxy.h"
50 #include "ppapi/proxy/ppb_testing_proxy.h" 50 #include "ppapi/proxy/ppb_testing_proxy.h"
51 #include "ppapi/proxy/ppb_url_loader_proxy.h" 51 #include "ppapi/proxy/ppb_url_loader_proxy.h"
52 #include "ppapi/proxy/ppb_url_request_info_proxy.h" 52 #include "ppapi/proxy/ppb_url_request_info_proxy.h"
53 #include "ppapi/proxy/ppb_url_response_info_proxy.h" 53 #include "ppapi/proxy/ppb_url_response_info_proxy.h"
54 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" 54 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
55 #include "ppapi/proxy/ppp_class_proxy.h" 55 #include "ppapi/proxy/ppp_class_proxy.h"
56 #include "ppapi/proxy/ppp_instance_proxy.h" 56 #include "ppapi/proxy/ppp_instance_proxy.h"
57 #include "ppapi/proxy/var_serialization_rules.h" 57 #include "ppapi/proxy/var_serialization_rules.h"
58 #include "webkit/glue/plugins/ppb_private.h" 58 #include "webkit/plugins/ppapi/ppb_pdf.h"
59 #include "webkit/glue/plugins/ppb_private2.h" 59 #include "webkit/plugins/ppapi/ppb_flash.h"
60 60
61 namespace pp { 61 namespace pp {
62 namespace proxy { 62 namespace proxy {
63 63
64 Dispatcher::Dispatcher(base::ProcessHandle remote_process_handle, 64 Dispatcher::Dispatcher(base::ProcessHandle remote_process_handle,
65 GetInterfaceFunc local_get_interface) 65 GetInterfaceFunc local_get_interface)
66 : pp_module_(0), 66 : pp_module_(0),
67 remote_process_handle_(remote_process_handle), 67 remote_process_handle_(remote_process_handle),
68 disallow_trusted_interfaces_(false), // TODO(brettw) make this settable. 68 disallow_trusted_interfaces_(false), // TODO(brettw) make this settable.
69 local_get_interface_(local_get_interface), 69 local_get_interface_(local_get_interface),
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 return new PPB_URLRequestInfo_Proxy(this, interface_functions); 255 return new PPB_URLRequestInfo_Proxy(this, interface_functions);
256 if (interface_name == PPB_URLRESPONSEINFO_INTERFACE) 256 if (interface_name == PPB_URLRESPONSEINFO_INTERFACE)
257 return new PPB_URLResponseInfo_Proxy(this, interface_functions); 257 return new PPB_URLResponseInfo_Proxy(this, interface_functions);
258 if (interface_name == PPB_VAR_DEPRECATED_INTERFACE) 258 if (interface_name == PPB_VAR_DEPRECATED_INTERFACE)
259 return new PPB_Var_Deprecated_Proxy(this, interface_functions); 259 return new PPB_Var_Deprecated_Proxy(this, interface_functions);
260 if (interface_name == PPP_INSTANCE_INTERFACE) 260 if (interface_name == PPP_INSTANCE_INTERFACE)
261 return new PPP_Instance_Proxy(this, interface_functions); 261 return new PPP_Instance_Proxy(this, interface_functions);
262 262
263 // Trusted interfaces. 263 // Trusted interfaces.
264 if (!disallow_trusted_interfaces_) { 264 if (!disallow_trusted_interfaces_) {
265 if (interface_name == PPB_PRIVATE2_INTERFACE) 265 if (interface_name == PPB_FLASH_INTERFACE)
266 return new PPB_Flash_Proxy(this, interface_functions); 266 return new PPB_Flash_Proxy(this, interface_functions);
267 if (interface_name == PPB_PRIVATE_INTERFACE) 267 if (interface_name == PPB_PDF_INTERFACE)
268 return new PPB_Pdf_Proxy(this, interface_functions); 268 return new PPB_PDF_Proxy(this, interface_functions);
269 if (interface_name == PPB_URLLOADERTRUSTED_INTERFACE) 269 if (interface_name == PPB_URLLOADERTRUSTED_INTERFACE)
270 return new PPB_URLLoaderTrusted_Proxy(this, interface_functions); 270 return new PPB_URLLoaderTrusted_Proxy(this, interface_functions);
271 } 271 }
272 272
273 return NULL; 273 return NULL;
274 } 274 }
275 275
276 } // namespace proxy 276 } // namespace proxy
277 } // namespace pp 277 } // namespace pp
278 278
OLDNEW
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | ppapi/proxy/ppapi_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698