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

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

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 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
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/interface_list.h" 5 #include "ppapi/proxy/interface_list.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" 8 #include "ppapi/c/dev/ppb_audio_input_dev.h"
9 #include "ppapi/c/dev/ppb_buffer_dev.h" 9 #include "ppapi/c/dev/ppb_buffer_dev.h"
10 #include "ppapi/c/dev/ppb_char_set_dev.h" 10 #include "ppapi/c/dev/ppb_char_set_dev.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "ppapi/proxy/ppb_image_data_proxy.h" 75 #include "ppapi/proxy/ppb_image_data_proxy.h"
76 #include "ppapi/proxy/ppb_instance_proxy.h" 76 #include "ppapi/proxy/ppb_instance_proxy.h"
77 #include "ppapi/proxy/ppb_pdf_proxy.h" 77 #include "ppapi/proxy/ppb_pdf_proxy.h"
78 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 78 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
79 #include "ppapi/proxy/ppb_testing_proxy.h" 79 #include "ppapi/proxy/ppb_testing_proxy.h"
80 #include "ppapi/proxy/ppb_text_input_proxy.h" 80 #include "ppapi/proxy/ppb_text_input_proxy.h"
81 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" 81 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h"
82 #include "ppapi/proxy/ppb_url_loader_proxy.h" 82 #include "ppapi/proxy/ppb_url_loader_proxy.h"
83 #include "ppapi/proxy/ppb_url_response_info_proxy.h" 83 #include "ppapi/proxy/ppb_url_response_info_proxy.h"
84 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" 84 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
85 #include "ppapi/proxy/ppb_var_proxy.h"
86 #include "ppapi/proxy/ppb_video_capture_proxy.h" 85 #include "ppapi/proxy/ppb_video_capture_proxy.h"
87 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 86 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
88 #include "ppapi/proxy/ppp_class_proxy.h" 87 #include "ppapi/proxy/ppp_class_proxy.h"
89 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" 88 #include "ppapi/proxy/ppp_graphics_3d_proxy.h"
90 #include "ppapi/proxy/ppp_input_event_proxy.h" 89 #include "ppapi/proxy/ppp_input_event_proxy.h"
91 #include "ppapi/proxy/ppp_instance_private_proxy.h" 90 #include "ppapi/proxy/ppp_instance_private_proxy.h"
92 #include "ppapi/proxy/ppp_instance_proxy.h" 91 #include "ppapi/proxy/ppp_instance_proxy.h"
93 #include "ppapi/proxy/ppp_messaging_proxy.h" 92 #include "ppapi/proxy/ppp_messaging_proxy.h"
94 #include "ppapi/proxy/ppp_mouse_lock_proxy.h" 93 #include "ppapi/proxy/ppp_mouse_lock_proxy.h"
95 #include "ppapi/proxy/ppp_video_decoder_proxy.h" 94 #include "ppapi/proxy/ppp_video_decoder_proxy.h"
96 #include "ppapi/proxy/resource_creation_proxy.h" 95 #include "ppapi/proxy/resource_creation_proxy.h"
97 #include "ppapi/shared_impl/ppb_opengles2_shared.h" 96 #include "ppapi/shared_impl/ppb_opengles2_shared.h"
97 #include "ppapi/shared_impl/ppb_var_impl.h"
98 #include "ppapi/thunk/thunk.h" 98 #include "ppapi/thunk/thunk.h"
99 99
100 // Helper to get the proxy name PPB_Foo_Proxy given the API name PPB_Foo. 100 // Helper to get the proxy name PPB_Foo_Proxy given the API name PPB_Foo.
101 #define PROXY_CLASS_NAME(api_name) api_name##_Proxy 101 #define PROXY_CLASS_NAME(api_name) api_name##_Proxy
102 102
103 // Helper to get the interface ID PPB_Foo_Proxy::kApiID given the API 103 // Helper to get the interface ID PPB_Foo_Proxy::kApiID given the API
104 // name PPB_Foo. 104 // name PPB_Foo.
105 #define PROXY_API_ID(api_name) PROXY_CLASS_NAME(api_name)::kApiID 105 #define PROXY_API_ID(api_name) PROXY_CLASS_NAME(api_name)::kApiID
106 106
107 // Helper to get the name of the templatized factory function. 107 // Helper to get the name of the templatized factory function.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // that they support, so aren't covered by the macros above, but have proxies 159 // that they support, so aren't covered by the macros above, but have proxies
160 // for message routing. Others have different implementations between the 160 // for message routing. Others have different implementations between the
161 // proxy and the impl and there's no obvious message routing. 161 // proxy and the impl and there's no obvious message routing.
162 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); 162 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create);
163 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); 163 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create);
164 AddPPB(PPB_CORE_INTERFACE, API_ID_PPB_CORE, 164 AddPPB(PPB_CORE_INTERFACE, API_ID_PPB_CORE,
165 PPB_Core_Proxy::GetPPB_Core_Interface()); 165 PPB_Core_Proxy::GetPPB_Core_Interface());
166 AddPPB(PPB_OPENGLES2_INTERFACE, API_ID_NONE, 166 AddPPB(PPB_OPENGLES2_INTERFACE, API_ID_NONE,
167 PPB_OpenGLES2_Shared::GetInterface()); 167 PPB_OpenGLES2_Shared::GetInterface());
168 AddPPB(PPB_VAR_INTERFACE, API_ID_NONE, 168 AddPPB(PPB_VAR_INTERFACE, API_ID_NONE,
169 GetPPB_Var_Interface()); 169 PPB_Var_Impl::GetVarInterface());
170 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE,
171 PPB_Var_Impl::GetVarInterface1_0());
170 172
171 AddFlashInterfaces(); 173 AddFlashInterfaces();
172 174
173 // PPB (browser) interfaces. 175 // PPB (browser) interfaces.
174 // Do not add more stuff here, they should be added to interface_list*.h 176 // Do not add more stuff here, they should be added to interface_list*.h
175 // TODO(brettw) remove these. 177 // TODO(brettw) remove these.
176 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo()); 178 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo());
177 AddPPB(PPB_Instance_Proxy::GetInfoPrivate()); 179 AddPPB(PPB_Instance_Proxy::GetInfoPrivate());
178 AddPPB(PPB_PDF_Proxy::GetInfo()); 180 AddPPB(PPB_PDF_Proxy::GetInfo());
179 AddPPB(PPB_Testing_Proxy::GetInfo()); 181 AddPPB(PPB_Testing_Proxy::GetInfo());
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 AddPPB(info->name, info->id, info->interface_ptr); 317 AddPPB(info->name, info->id, info->interface_ptr);
316 } 318 }
317 319
318 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 320 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
319 AddProxy(info->id, info->create_proxy); 321 AddProxy(info->id, info->create_proxy);
320 AddPPP(info->name, info->id, info->interface_ptr); 322 AddPPP(info->name, info->id, info->interface_ptr);
321 } 323 }
322 324
323 } // namespace proxy 325 } // namespace proxy
324 } // namespace ppapi 326 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/host_var_serialization_rules.cc ('k') | ppapi/proxy/plugin_var_serialization_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698