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

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

Issue 8849003: Rename the shared_impl resource files to give them more regular names. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « ppapi/ppapi_shared.gypi ('k') | ppapi/proxy/ppapi_messages.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) 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 87 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
88 #include "ppapi/proxy/ppp_class_proxy.h" 88 #include "ppapi/proxy/ppp_class_proxy.h"
89 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" 89 #include "ppapi/proxy/ppp_graphics_3d_proxy.h"
90 #include "ppapi/proxy/ppp_input_event_proxy.h" 90 #include "ppapi/proxy/ppp_input_event_proxy.h"
91 #include "ppapi/proxy/ppp_instance_private_proxy.h" 91 #include "ppapi/proxy/ppp_instance_private_proxy.h"
92 #include "ppapi/proxy/ppp_instance_proxy.h" 92 #include "ppapi/proxy/ppp_instance_proxy.h"
93 #include "ppapi/proxy/ppp_messaging_proxy.h" 93 #include "ppapi/proxy/ppp_messaging_proxy.h"
94 #include "ppapi/proxy/ppp_mouse_lock_proxy.h" 94 #include "ppapi/proxy/ppp_mouse_lock_proxy.h"
95 #include "ppapi/proxy/ppp_video_decoder_proxy.h" 95 #include "ppapi/proxy/ppp_video_decoder_proxy.h"
96 #include "ppapi/proxy/resource_creation_proxy.h" 96 #include "ppapi/proxy/resource_creation_proxy.h"
97 #include "ppapi/shared_impl/opengles2_impl.h" 97 #include "ppapi/shared_impl/ppb_opengles2_shared.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 // Manually add some special proxies. Some of these don't have interfaces 158 // Manually add some special proxies. Some of these don't have interfaces
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 OpenGLES2Impl::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 GetPPB_Var_Interface());
170 170
171 AddFlashInterfaces(); 171 AddFlashInterfaces();
172 172
173 // PPB (browser) interfaces. 173 // PPB (browser) interfaces.
174 // Do not add more stuff here, they should be added to interface_list*.h 174 // Do not add more stuff here, they should be added to interface_list*.h
175 // TODO(brettw) remove these. 175 // TODO(brettw) remove these.
176 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo()); 176 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo());
177 AddPPB(PPB_Instance_Proxy::GetInfoPrivate()); 177 AddPPB(PPB_Instance_Proxy::GetInfoPrivate());
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 AddPPB(info->name, info->id, info->interface_ptr); 315 AddPPB(info->name, info->id, info->interface_ptr);
316 } 316 }
317 317
318 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 318 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
319 AddProxy(info->id, info->create_proxy); 319 AddProxy(info->id, info->create_proxy);
320 AddPPP(info->name, info->id, info->interface_ptr); 320 AddPPP(info->name, info->id, info->interface_ptr);
321 } 321 }
322 322
323 } // namespace proxy 323 } // namespace proxy
324 } // namespace ppapi 324 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/ppapi_shared.gypi ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698