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

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

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" 98 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h"
99 #include "ppapi/proxy/ppb_pdf_proxy.h" 99 #include "ppapi/proxy/ppb_pdf_proxy.h"
100 #include "ppapi/proxy/ppb_talk_private_proxy.h" 100 #include "ppapi/proxy/ppb_talk_private_proxy.h"
101 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" 101 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h"
102 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 102 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
103 #include "ppapi/proxy/ppb_testing_proxy.h" 103 #include "ppapi/proxy/ppb_testing_proxy.h"
104 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" 104 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h"
105 #include "ppapi/proxy/ppb_url_loader_proxy.h" 105 #include "ppapi/proxy/ppb_url_loader_proxy.h"
106 #include "ppapi/proxy/ppb_url_response_info_proxy.h" 106 #include "ppapi/proxy/ppb_url_response_info_proxy.h"
107 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" 107 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
108 #include "ppapi/proxy/ppb_video_capture_proxy.h"
109 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 108 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
110 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" 109 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h"
111 #include "ppapi/proxy/ppp_class_proxy.h" 110 #include "ppapi/proxy/ppp_class_proxy.h"
112 #include "ppapi/proxy/ppp_content_decryptor_private_proxy.h" 111 #include "ppapi/proxy/ppp_content_decryptor_private_proxy.h"
113 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" 112 #include "ppapi/proxy/ppp_graphics_3d_proxy.h"
114 #include "ppapi/proxy/ppp_input_event_proxy.h" 113 #include "ppapi/proxy/ppp_input_event_proxy.h"
115 #include "ppapi/proxy/ppp_instance_private_proxy.h" 114 #include "ppapi/proxy/ppp_instance_private_proxy.h"
116 #include "ppapi/proxy/ppp_instance_proxy.h" 115 #include "ppapi/proxy/ppp_instance_proxy.h"
117 #include "ppapi/proxy/ppp_messaging_proxy.h" 116 #include "ppapi/proxy/ppp_messaging_proxy.h"
118 #include "ppapi/proxy/ppp_mouse_lock_proxy.h" 117 #include "ppapi/proxy/ppp_mouse_lock_proxy.h"
119 #include "ppapi/proxy/ppp_printing_proxy.h" 118 #include "ppapi/proxy/ppp_printing_proxy.h"
120 #include "ppapi/proxy/ppp_text_input_proxy.h" 119 #include "ppapi/proxy/ppp_text_input_proxy.h"
121 #include "ppapi/proxy/ppp_video_decoder_proxy.h" 120 #include "ppapi/proxy/ppp_video_decoder_proxy.h"
122 #include "ppapi/proxy/resource_creation_proxy.h" 121 #include "ppapi/proxy/resource_creation_proxy.h"
122 #include "ppapi/proxy/video_capture_resource.h"
yzshen1 2012/10/29 18:34:23 Do we need this include here?
victorhsieh 2012/10/30 09:43:28 Removed.
123 #include "ppapi/shared_impl/ppb_opengles2_shared.h" 123 #include "ppapi/shared_impl/ppb_opengles2_shared.h"
124 #include "ppapi/shared_impl/ppb_var_shared.h" 124 #include "ppapi/shared_impl/ppb_var_shared.h"
125 #include "ppapi/thunk/thunk.h" 125 #include "ppapi/thunk/thunk.h"
126 126
127 // Helper to get the proxy name PPB_Foo_Proxy given the API name PPB_Foo. 127 // Helper to get the proxy name PPB_Foo_Proxy given the API name PPB_Foo.
128 #define PROXY_CLASS_NAME(api_name) api_name##_Proxy 128 #define PROXY_CLASS_NAME(api_name) api_name##_Proxy
129 129
130 // Helper to get the interface ID PPB_Foo_Proxy::kApiID given the API 130 // Helper to get the interface ID PPB_Foo_Proxy::kApiID given the API
131 // name PPB_Foo. 131 // name PPB_Foo.
132 #define PROXY_API_ID(api_name) PROXY_CLASS_NAME(api_name)::kApiID 132 #define PROXY_API_ID(api_name) PROXY_CLASS_NAME(api_name)::kApiID
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 // Old-style GetInfo PPP interfaces. 277 // Old-style GetInfo PPP interfaces.
278 // Do not add more stuff here, they should be added to interface_list*.h 278 // Do not add more stuff here, they should be added to interface_list*.h
279 // TODO(brettw) remove these. 279 // TODO(brettw) remove these.
280 AddPPP(PPP_InputEvent_Proxy::GetInfo()); 280 AddPPP(PPP_InputEvent_Proxy::GetInfo());
281 AddPPP(PPP_Messaging_Proxy::GetInfo()); 281 AddPPP(PPP_Messaging_Proxy::GetInfo());
282 AddPPP(PPP_MouseLock_Proxy::GetInfo()); 282 AddPPP(PPP_MouseLock_Proxy::GetInfo());
283 AddPPP(PPP_Graphics3D_Proxy::GetInfo()); 283 AddPPP(PPP_Graphics3D_Proxy::GetInfo());
284 #if !defined(OS_NACL) 284 #if !defined(OS_NACL)
285 AddPPP(PPP_Instance_Private_Proxy::GetInfo()); 285 AddPPP(PPP_Instance_Private_Proxy::GetInfo());
286 AddPPP(PPP_VideoCapture_Proxy::GetInfo());
287 AddPPP(PPP_VideoDecoder_Proxy::GetInfo()); 286 AddPPP(PPP_VideoDecoder_Proxy::GetInfo());
288 #endif 287 #endif
289 } 288 }
290 289
291 InterfaceList::~InterfaceList() { 290 InterfaceList::~InterfaceList() {
292 } 291 }
293 292
294 // static 293 // static
295 InterfaceList* InterfaceList::GetInstance() { 294 InterfaceList* InterfaceList::GetInstance() {
296 return Singleton<InterfaceList>::get(); 295 return Singleton<InterfaceList>::get();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 AddPPB(info->name, info->id, info->interface_ptr, perm); 381 AddPPB(info->name, info->id, info->interface_ptr, perm);
383 } 382 }
384 383
385 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 384 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
386 AddProxy(info->id, info->create_proxy); 385 AddProxy(info->id, info->create_proxy);
387 AddPPP(info->name, info->id, info->interface_ptr); 386 AddPPP(info->name, info->id, info->interface_ptr);
388 } 387 }
389 388
390 } // namespace proxy 389 } // namespace proxy
391 } // namespace ppapi 390 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698