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