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

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

Issue 11364188: PPAPI: Take PPB_MessageLoop out of Dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 1 month 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_sources.gypi ('k') | ppapi/proxy/ppb_message_loop_proxy.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "ppapi/c/dev/ppb_audio_input_dev.h" 9 #include "ppapi/c/dev/ppb_audio_input_dev.h"
10 #include "ppapi/c/dev/ppb_buffer_dev.h" 10 #include "ppapi/c/dev/ppb_buffer_dev.h"
11 #include "ppapi/c/dev/ppb_char_set_dev.h" 11 #include "ppapi/c/dev/ppb_char_set_dev.h"
12 #include "ppapi/c/dev/ppb_console_dev.h" 12 #include "ppapi/c/dev/ppb_console_dev.h"
13 #include "ppapi/c/dev/ppb_crypto_dev.h" 13 #include "ppapi/c/dev/ppb_crypto_dev.h"
14 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 14 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
15 #include "ppapi/c/dev/ppb_device_ref_dev.h" 15 #include "ppapi/c/dev/ppb_device_ref_dev.h"
16 #include "ppapi/c/dev/ppb_font_dev.h" 16 #include "ppapi/c/dev/ppb_font_dev.h"
17 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" 17 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
18 #include "ppapi/c/dev/ppb_graphics_2d_dev.h" 18 #include "ppapi/c/dev/ppb_graphics_2d_dev.h"
19 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" 19 #include "ppapi/c/dev/ppb_ime_input_event_dev.h"
20 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h" 20 #include "ppapi/c/dev/ppb_keyboard_input_event_dev.h"
21 #include "ppapi/c/dev/ppb_memory_dev.h" 21 #include "ppapi/c/dev/ppb_memory_dev.h"
22 #include "ppapi/c/dev/ppb_message_loop_dev.h"
23 #include "ppapi/c/dev/ppb_opengles2ext_dev.h" 22 #include "ppapi/c/dev/ppb_opengles2ext_dev.h"
24 #include "ppapi/c/dev/ppb_printing_dev.h" 23 #include "ppapi/c/dev/ppb_printing_dev.h"
25 #include "ppapi/c/dev/ppb_resource_array_dev.h" 24 #include "ppapi/c/dev/ppb_resource_array_dev.h"
26 #include "ppapi/c/dev/ppb_testing_dev.h" 25 #include "ppapi/c/dev/ppb_testing_dev.h"
27 #include "ppapi/c/dev/ppb_text_input_dev.h" 26 #include "ppapi/c/dev/ppb_text_input_dev.h"
28 #include "ppapi/c/dev/ppb_url_util_dev.h" 27 #include "ppapi/c/dev/ppb_url_util_dev.h"
29 #include "ppapi/c/dev/ppb_var_deprecated.h" 28 #include "ppapi/c/dev/ppb_var_deprecated.h"
30 #include "ppapi/c/dev/ppb_video_capture_dev.h" 29 #include "ppapi/c/dev/ppb_video_capture_dev.h"
31 #include "ppapi/c/dev/ppb_view_dev.h" 30 #include "ppapi/c/dev/ppb_view_dev.h"
32 #include "ppapi/c/ppb_audio_config.h" 31 #include "ppapi/c/ppb_audio_config.h"
33 #include "ppapi/c/ppb_audio.h" 32 #include "ppapi/c/ppb_audio.h"
34 #include "ppapi/c/ppb_core.h" 33 #include "ppapi/c/ppb_core.h"
35 #include "ppapi/c/ppb_file_io.h" 34 #include "ppapi/c/ppb_file_io.h"
36 #include "ppapi/c/ppb_file_ref.h" 35 #include "ppapi/c/ppb_file_ref.h"
37 #include "ppapi/c/ppb_file_system.h" 36 #include "ppapi/c/ppb_file_system.h"
38 #include "ppapi/c/ppb_fullscreen.h" 37 #include "ppapi/c/ppb_fullscreen.h"
39 #include "ppapi/c/ppb_graphics_2d.h" 38 #include "ppapi/c/ppb_graphics_2d.h"
40 #include "ppapi/c/ppb_image_data.h" 39 #include "ppapi/c/ppb_image_data.h"
41 #include "ppapi/c/ppb_input_event.h" 40 #include "ppapi/c/ppb_input_event.h"
42 #include "ppapi/c/ppb_instance.h" 41 #include "ppapi/c/ppb_instance.h"
42 #include "ppapi/c/ppb_message_loop.h"
43 #include "ppapi/c/ppb_messaging.h" 43 #include "ppapi/c/ppb_messaging.h"
44 #include "ppapi/c/ppb_mouse_lock.h" 44 #include "ppapi/c/ppb_mouse_lock.h"
45 #include "ppapi/c/ppb_opengles2.h" 45 #include "ppapi/c/ppb_opengles2.h"
46 #include "ppapi/c/ppb_url_loader.h" 46 #include "ppapi/c/ppb_url_loader.h"
47 #include "ppapi/c/ppb_url_request_info.h" 47 #include "ppapi/c/ppb_url_request_info.h"
48 #include "ppapi/c/ppb_url_response_info.h" 48 #include "ppapi/c/ppb_url_response_info.h"
49 #include "ppapi/c/ppb_var.h" 49 #include "ppapi/c/ppb_var.h"
50 #include "ppapi/c/ppb_var_array_buffer.h" 50 #include "ppapi/c/ppb_var_array_buffer.h"
51 #include "ppapi/c/ppb_view.h" 51 #include "ppapi/c/ppb_view.h"
52 #include "ppapi/c/pp_errors.h" 52 #include "ppapi/c/pp_errors.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 #undef PROXIED_IFACE 202 #undef PROXIED_IFACE
203 203
204 // Manually add some special proxies. Some of these don't have interfaces 204 // Manually add some special proxies. Some of these don't have interfaces
205 // that they support, so aren't covered by the macros above, but have proxies 205 // that they support, so aren't covered by the macros above, but have proxies
206 // for message routing. Others have different implementations between the 206 // for message routing. Others have different implementations between the
207 // proxy and the impl and there's no obvious message routing. 207 // proxy and the impl and there's no obvious message routing.
208 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); 208 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create);
209 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); 209 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create);
210 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, 210 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE,
211 PPB_Core_Proxy::GetPPB_Core_Interface(), PERMISSION_NONE); 211 PPB_Core_Proxy::GetPPB_Core_Interface(), PERMISSION_NONE);
212 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE, 212 AddPPB(PPB_MESSAGELOOP_INTERFACE_1_0, API_ID_NONE,
213 PPB_MessageLoop_Proxy::GetInterface(), PERMISSION_DEV); 213 PPB_MessageLoop_Proxy::GetInterface(), PERMISSION_NONE);
214 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, 214 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE,
215 PPB_OpenGLES2_Shared::GetInterface(), PERMISSION_NONE); 215 PPB_OpenGLES2_Shared::GetInterface(), PERMISSION_NONE);
216 AddPPB(PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0, API_ID_NONE, 216 AddPPB(PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0, API_ID_NONE,
217 PPB_OpenGLES2_Shared::GetInstancedArraysInterface(), PERMISSION_NONE); 217 PPB_OpenGLES2_Shared::GetInstancedArraysInterface(), PERMISSION_NONE);
218 AddPPB(PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0, API_ID_NONE, 218 AddPPB(PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0, API_ID_NONE,
219 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface(), PERMISSION_NONE); 219 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface(), PERMISSION_NONE);
220 AddPPB(PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0, API_ID_NONE, 220 AddPPB(PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0, API_ID_NONE,
221 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface(), 221 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface(),
222 PERMISSION_NONE); 222 PERMISSION_NONE);
223 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0, API_ID_NONE, 223 AddPPB(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0, API_ID_NONE,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 AddPPB(info->name, info->id, info->interface_ptr, perm); 383 AddPPB(info->name, info->id, info->interface_ptr, perm);
384 } 384 }
385 385
386 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 386 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
387 AddProxy(info->id, info->create_proxy); 387 AddProxy(info->id, info->create_proxy);
388 AddPPP(info->name, info->id, info->interface_ptr); 388 AddPPP(info->name, info->id, info->interface_ptr);
389 } 389 }
390 390
391 } // namespace proxy 391 } // namespace proxy
392 } // namespace ppapi 392 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/ppapi_sources.gypi ('k') | ppapi/proxy/ppb_message_loop_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698