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

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

Issue 9666020: Add a private PPB_Talk_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« 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) 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/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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "ppapi/c/private/ppb_flash_fullscreen.h" 54 #include "ppapi/c/private/ppb_flash_fullscreen.h"
55 #include "ppapi/c/private/ppb_flash.h" 55 #include "ppapi/c/private/ppb_flash.h"
56 #include "ppapi/c/private/ppb_flash_menu.h" 56 #include "ppapi/c/private/ppb_flash_menu.h"
57 #include "ppapi/c/private/ppb_flash_message_loop.h" 57 #include "ppapi/c/private/ppb_flash_message_loop.h"
58 #include "ppapi/c/private/ppb_flash_net_connector.h" 58 #include "ppapi/c/private/ppb_flash_net_connector.h"
59 #include "ppapi/c/private/ppb_flash_tcp_socket.h" 59 #include "ppapi/c/private/ppb_flash_tcp_socket.h"
60 #include "ppapi/c/private/ppb_net_address_private.h" 60 #include "ppapi/c/private/ppb_net_address_private.h"
61 #include "ppapi/c/private/ppb_network_list_private.h" 61 #include "ppapi/c/private/ppb_network_list_private.h"
62 #include "ppapi/c/private/ppb_network_monitor_private.h" 62 #include "ppapi/c/private/ppb_network_monitor_private.h"
63 #include "ppapi/c/private/ppb_pdf.h" 63 #include "ppapi/c/private/ppb_pdf.h"
64 #include "ppapi/c/private/ppb_talk_private.h"
64 #include "ppapi/c/private/ppb_tcp_socket_private.h" 65 #include "ppapi/c/private/ppb_tcp_socket_private.h"
65 #include "ppapi/c/private/ppb_udp_socket_private.h" 66 #include "ppapi/c/private/ppb_udp_socket_private.h"
66 #include "ppapi/c/trusted/ppb_broker_trusted.h" 67 #include "ppapi/c/trusted/ppb_broker_trusted.h"
67 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" 68 #include "ppapi/c/trusted/ppb_browser_font_trusted.h"
68 #include "ppapi/c/trusted/ppb_char_set_trusted.h" 69 #include "ppapi/c/trusted/ppb_char_set_trusted.h"
69 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 70 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
70 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 71 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
71 #include "ppapi/proxy/interface_proxy.h" 72 #include "ppapi/proxy/interface_proxy.h"
72 #include "ppapi/proxy/ppb_audio_input_proxy.h" 73 #include "ppapi/proxy/ppb_audio_input_proxy.h"
73 #include "ppapi/proxy/ppb_audio_proxy.h" 74 #include "ppapi/proxy/ppb_audio_proxy.h"
(...skipping 10 matching lines...) Expand all
84 #include "ppapi/proxy/ppb_flash_menu_proxy.h" 85 #include "ppapi/proxy/ppb_flash_menu_proxy.h"
85 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" 86 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h"
86 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" 87 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h"
87 #include "ppapi/proxy/ppb_flash_proxy.h" 88 #include "ppapi/proxy/ppb_flash_proxy.h"
88 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" 89 #include "ppapi/proxy/ppb_graphics_2d_proxy.h"
89 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" 90 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
90 #include "ppapi/proxy/ppb_image_data_proxy.h" 91 #include "ppapi/proxy/ppb_image_data_proxy.h"
91 #include "ppapi/proxy/ppb_instance_proxy.h" 92 #include "ppapi/proxy/ppb_instance_proxy.h"
92 #include "ppapi/proxy/ppb_message_loop_proxy.h" 93 #include "ppapi/proxy/ppb_message_loop_proxy.h"
93 #include "ppapi/proxy/ppb_pdf_proxy.h" 94 #include "ppapi/proxy/ppb_pdf_proxy.h"
95 #include "ppapi/proxy/ppb_talk_private_proxy.h"
94 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 96 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
95 #include "ppapi/proxy/ppb_testing_proxy.h" 97 #include "ppapi/proxy/ppb_testing_proxy.h"
96 #include "ppapi/proxy/ppb_text_input_proxy.h" 98 #include "ppapi/proxy/ppb_text_input_proxy.h"
97 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" 99 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h"
98 #include "ppapi/proxy/ppb_url_loader_proxy.h" 100 #include "ppapi/proxy/ppb_url_loader_proxy.h"
99 #include "ppapi/proxy/ppb_url_response_info_proxy.h" 101 #include "ppapi/proxy/ppb_url_response_info_proxy.h"
100 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" 102 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
101 #include "ppapi/proxy/ppb_video_capture_proxy.h" 103 #include "ppapi/proxy/ppb_video_capture_proxy.h"
102 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 104 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
103 #include "ppapi/proxy/ppp_class_proxy.h" 105 #include "ppapi/proxy/ppp_class_proxy.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 PPB_Var_Shared::GetVarInterface1_0()); 204 PPB_Var_Shared::GetVarInterface1_0());
203 205
204 AddFlashInterfaces(); 206 AddFlashInterfaces();
205 207
206 // PPB (browser) interfaces. 208 // PPB (browser) interfaces.
207 // Do not add more stuff here, they should be added to interface_list*.h 209 // Do not add more stuff here, they should be added to interface_list*.h
208 // TODO(brettw) remove these. 210 // TODO(brettw) remove these.
209 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo()); 211 AddPPB(PPB_FileChooser_Proxy::GetTrustedInfo());
210 AddPPB(PPB_Instance_Proxy::GetInfoPrivate()); 212 AddPPB(PPB_Instance_Proxy::GetInfoPrivate());
211 AddPPB(PPB_PDF_Proxy::GetInfo()); 213 AddPPB(PPB_PDF_Proxy::GetInfo());
214 AddProxy(API_ID_TALK, &ProxyFactory<PPB_Talk_Private_Proxy>);
215 AddPPB(PPB_Talk_Private_Proxy::GetInterface());
212 AddPPB(PPB_Testing_Proxy::GetInfo()); 216 AddPPB(PPB_Testing_Proxy::GetInfo());
213 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo()); 217 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo());
214 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo()); 218 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo());
215 219
216 // PPP (plugin) interfaces. 220 // PPP (plugin) interfaces.
217 // TODO(brettw) move these to interface_list*.h 221 // TODO(brettw) move these to interface_list*.h
218 AddProxy(API_ID_PPP_INSTANCE, &ProxyFactory<PPP_Instance_Proxy>); 222 AddProxy(API_ID_PPP_INSTANCE, &ProxyFactory<PPP_Instance_Proxy>);
219 AddPPP(PPP_INSTANCE_INTERFACE_1_1, API_ID_PPP_INSTANCE, 223 AddPPP(PPP_INSTANCE_INTERFACE_1_1, API_ID_PPP_INSTANCE,
220 PPP_Instance_Proxy::GetInstanceInterface()); 224 PPP_Instance_Proxy::GetInstanceInterface());
221 AddProxy(API_ID_PPP_PRINTING, &ProxyFactory<PPP_Printing_Proxy>); 225 AddProxy(API_ID_PPP_PRINTING, &ProxyFactory<PPP_Printing_Proxy>);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 AddPPB(info->name, info->id, info->interface_ptr); 373 AddPPB(info->name, info->id, info->interface_ptr);
370 } 374 }
371 375
372 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 376 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
373 AddProxy(info->id, info->create_proxy); 377 AddProxy(info->id, info->create_proxy);
374 AddPPP(info->name, info->id, info->interface_ptr); 378 AddPPP(info->name, info->id, info->interface_ptr);
375 } 379 }
376 380
377 } // namespace proxy 381 } // namespace proxy
378 } // namespace ppapi 382 } // 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