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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc

Issue 9307115: PPB_NetAddress_Private: add getter methods for sockaddr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 10 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
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 // Implements the untrusted side of the PPB_GetInterface method. 5 // Implements the untrusted side of the PPB_GetInterface method.
6 6
7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h" 10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true }, 75 { PPB_INSTANCE_INTERFACE, PluginInstance::GetInterface(), true },
76 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE, 76 { PPB_KEYBOARD_INPUT_EVENT_INTERFACE,
77 PluginInputEvent::GetKeyboardInterface(), true }, 77 PluginInputEvent::GetKeyboardInterface(), true },
78 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true }, 78 { PPB_MEMORY_DEV_INTERFACE, PluginMemory::GetInterface(), true },
79 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true }, 79 { PPB_MESSAGING_INTERFACE, PluginMessaging::GetInterface(), true },
80 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, 80 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0,
81 PluginInputEvent::GetMouseInterface1_0(), true }, 81 PluginInputEvent::GetMouseInterface1_0(), true },
82 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, 82 { PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1,
83 PluginInputEvent::GetMouseInterface1_1(), true }, 83 PluginInputEvent::GetMouseInterface1_1(), true },
84 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true }, 84 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true },
85 { PPB_NETADDRESS_PRIVATE_INTERFACE, PluginNetAddressPrivate::GetInterface(), 85 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1,
86 true }, 86 PluginNetAddressPrivate::GetInterface0_1(), true },
87 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0,
88 PluginNetAddressPrivate::GetInterface1_0(), true },
87 { PPB_OPENGLES2_INTERFACE, PluginGraphics3D::GetOpenGLESInterface(), 89 { PPB_OPENGLES2_INTERFACE, PluginGraphics3D::GetOpenGLESInterface(),
88 true }, 90 true },
89 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, 91 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true },
90 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, 92 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true },
91 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(), 93 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(),
92 true }, 94 true },
93 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, 95 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true },
94 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, 96 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true },
95 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(), 97 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(),
96 true }, 98 true },
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 interface_name, NaClSrpcErrorString(srpc_result)); 148 interface_name, NaClSrpcErrorString(srpc_result));
147 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 149 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
148 interface_map[index].ppb_interface = NULL; 150 interface_map[index].ppb_interface = NULL;
149 ppb_interface = NULL; 151 ppb_interface = NULL;
150 } 152 }
151 interface_map[index].needs_browser_check = false; 153 interface_map[index].needs_browser_check = false;
152 return ppb_interface; 154 return ppb_interface;
153 } 155 }
154 156
155 } // namespace ppapi_proxy 157 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698