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

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

Issue 11094060: Exclude host-side code from the NaCl IRT proxy build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « no previous file | ppapi/proxy/ppb_audio_proxy.cc » ('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"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 &ProxyFactory<PPP_ContentDecryptor_Private_Proxy>); 258 &ProxyFactory<PPP_ContentDecryptor_Private_Proxy>);
259 AddPPP(PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE, 259 AddPPP(PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE,
260 API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE, 260 API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE,
261 PPP_ContentDecryptor_Private_Proxy::GetProxyInterface()); 261 PPP_ContentDecryptor_Private_Proxy::GetProxyInterface());
262 #endif 262 #endif
263 AddPPB(PPB_Testing_Proxy::GetInfo(), PERMISSION_TESTING); 263 AddPPB(PPB_Testing_Proxy::GetInfo(), PERMISSION_TESTING);
264 264
265 // PPP (plugin) interfaces. 265 // PPP (plugin) interfaces.
266 // TODO(brettw) move these to interface_list*.h 266 // TODO(brettw) move these to interface_list*.h
267 AddProxy(API_ID_PPP_INSTANCE, &ProxyFactory<PPP_Instance_Proxy>); 267 AddProxy(API_ID_PPP_INSTANCE, &ProxyFactory<PPP_Instance_Proxy>);
268 #if !defined(OS_NACL)
brettw 2012/10/11 21:18:20 I'd skip this.
268 AddPPP(PPP_INSTANCE_INTERFACE_1_1, API_ID_PPP_INSTANCE, 269 AddPPP(PPP_INSTANCE_INTERFACE_1_1, API_ID_PPP_INSTANCE,
269 PPP_Instance_Proxy::GetInstanceInterface()); 270 PPP_Instance_Proxy::GetInstanceInterface());
271 #endif
270 AddProxy(API_ID_PPP_PRINTING, &ProxyFactory<PPP_Printing_Proxy>); 272 AddProxy(API_ID_PPP_PRINTING, &ProxyFactory<PPP_Printing_Proxy>);
271 AddPPP(PPP_PRINTING_DEV_INTERFACE, API_ID_PPP_PRINTING, 273 AddPPP(PPP_PRINTING_DEV_INTERFACE, API_ID_PPP_PRINTING,
272 PPP_Printing_Proxy::GetProxyInterface()); 274 PPP_Printing_Proxy::GetProxyInterface());
273 AddProxy(API_ID_PPP_TEXT_INPUT, &ProxyFactory<PPP_TextInput_Proxy>); 275 AddProxy(API_ID_PPP_TEXT_INPUT, &ProxyFactory<PPP_TextInput_Proxy>);
274 AddPPP(PPP_TEXTINPUT_DEV_INTERFACE, API_ID_PPP_TEXT_INPUT, 276 AddPPP(PPP_TEXTINPUT_DEV_INTERFACE, API_ID_PPP_TEXT_INPUT,
275 PPP_TextInput_Proxy::GetProxyInterface()); 277 PPP_TextInput_Proxy::GetProxyInterface());
276 278
277 // Old-style GetInfo PPP interfaces. 279 // Old-style GetInfo PPP interfaces.
278 // Do not add more stuff here, they should be added to interface_list*.h 280 // Do not add more stuff here, they should be added to interface_list*.h
279 // TODO(brettw) remove these. 281 // TODO(brettw) remove these.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 AddPPB(info->name, info->id, info->interface_ptr, perm); 384 AddPPB(info->name, info->id, info->interface_ptr, perm);
383 } 385 }
384 386
385 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 387 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
386 AddProxy(info->id, info->create_proxy); 388 AddProxy(info->id, info->create_proxy);
387 AddPPP(info->name, info->id, info->interface_ptr); 389 AddPPP(info->name, info->id, info->interface_ptr);
388 } 390 }
389 391
390 } // namespace proxy 392 } // namespace proxy
391 } // namespace ppapi 393 } // namespace ppapi
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/ppb_audio_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698