OLD | NEW |
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" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" | 95 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" |
96 #include "ppapi/proxy/ppb_pdf_proxy.h" | 96 #include "ppapi/proxy/ppb_pdf_proxy.h" |
97 #include "ppapi/proxy/ppb_talk_private_proxy.h" | 97 #include "ppapi/proxy/ppb_talk_private_proxy.h" |
98 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" | 98 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" |
99 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" | 99 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" |
100 #include "ppapi/proxy/ppb_testing_proxy.h" | 100 #include "ppapi/proxy/ppb_testing_proxy.h" |
101 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" | 101 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" |
102 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 102 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
103 #include "ppapi/proxy/ppb_url_response_info_proxy.h" | 103 #include "ppapi/proxy/ppb_url_response_info_proxy.h" |
104 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" | 104 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" |
105 #include "ppapi/proxy/ppb_video_capture_proxy.h" | |
106 #include "ppapi/proxy/ppb_video_decoder_proxy.h" | 105 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
107 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" | 106 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" |
108 #include "ppapi/proxy/ppp_class_proxy.h" | 107 #include "ppapi/proxy/ppp_class_proxy.h" |
109 #include "ppapi/proxy/ppp_content_decryptor_private_proxy.h" | 108 #include "ppapi/proxy/ppp_content_decryptor_private_proxy.h" |
110 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" | 109 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" |
111 #include "ppapi/proxy/ppp_input_event_proxy.h" | 110 #include "ppapi/proxy/ppp_input_event_proxy.h" |
112 #include "ppapi/proxy/ppp_instance_private_proxy.h" | 111 #include "ppapi/proxy/ppp_instance_private_proxy.h" |
113 #include "ppapi/proxy/ppp_instance_proxy.h" | 112 #include "ppapi/proxy/ppp_instance_proxy.h" |
114 #include "ppapi/proxy/ppp_messaging_proxy.h" | 113 #include "ppapi/proxy/ppp_messaging_proxy.h" |
115 #include "ppapi/proxy/ppp_mouse_lock_proxy.h" | 114 #include "ppapi/proxy/ppp_mouse_lock_proxy.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 275 |
277 // Old-style GetInfo PPP interfaces. | 276 // Old-style GetInfo PPP interfaces. |
278 // Do not add more stuff here, they should be added to interface_list*.h | 277 // Do not add more stuff here, they should be added to interface_list*.h |
279 // TODO(brettw) remove these. | 278 // TODO(brettw) remove these. |
280 AddPPP(PPP_InputEvent_Proxy::GetInfo()); | 279 AddPPP(PPP_InputEvent_Proxy::GetInfo()); |
281 AddPPP(PPP_Messaging_Proxy::GetInfo()); | 280 AddPPP(PPP_Messaging_Proxy::GetInfo()); |
282 AddPPP(PPP_MouseLock_Proxy::GetInfo()); | 281 AddPPP(PPP_MouseLock_Proxy::GetInfo()); |
283 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); | 282 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); |
284 #if !defined(OS_NACL) | 283 #if !defined(OS_NACL) |
285 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); | 284 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); |
286 AddPPP(PPP_VideoCapture_Proxy::GetInfo()); | |
287 AddPPP(PPP_VideoDecoder_Proxy::GetInfo()); | 285 AddPPP(PPP_VideoDecoder_Proxy::GetInfo()); |
288 #endif | 286 #endif |
289 } | 287 } |
290 | 288 |
291 InterfaceList::~InterfaceList() { | 289 InterfaceList::~InterfaceList() { |
292 } | 290 } |
293 | 291 |
294 // static | 292 // static |
295 InterfaceList* InterfaceList::GetInstance() { | 293 InterfaceList* InterfaceList::GetInstance() { |
296 return Singleton<InterfaceList>::get(); | 294 return Singleton<InterfaceList>::get(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 AddPPB(info->name, info->id, info->interface_ptr, perm); | 380 AddPPB(info->name, info->id, info->interface_ptr, perm); |
383 } | 381 } |
384 | 382 |
385 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 383 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
386 AddProxy(info->id, info->create_proxy); | 384 AddProxy(info->id, info->create_proxy); |
387 AddPPP(info->name, info->id, info->interface_ptr); | 385 AddPPP(info->name, info->id, info->interface_ptr); |
388 } | 386 } |
389 | 387 |
390 } // namespace proxy | 388 } // namespace proxy |
391 } // namespace ppapi | 389 } // namespace ppapi |
OLD | NEW |