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

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

Issue 9699100: Add functionality to pppapi TCPSocket to support secure sockets in flash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(), 114 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(),
115 true }, 115 true },
116 { PPB_OPENGLES2_QUERY_DEV_INTERFACE_1_0, 116 { PPB_OPENGLES2_QUERY_DEV_INTERFACE_1_0,
117 PluginGraphics3D::GetOpenGLESQueryInterface(), 117 PluginGraphics3D::GetOpenGLESQueryInterface(),
118 true }, 118 true },
119 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, 119 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true },
120 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, 120 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true },
121 { PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE, 121 { PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE,
122 PluginTCPServerSocketPrivate::GetInterface(), 122 PluginTCPServerSocketPrivate::GetInterface(),
123 true }, 123 true },
124 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(), 124 { PPB_TCPSOCKET_PRIVATE_INTERFACE_0_4,
125 true }, 125 PluginTCPSocketPrivate::GetInterface0_4(), true },
126 { PPB_TCPSOCKET_PRIVATE_INTERFACE_0_3,
127 PluginTCPSocketPrivate::GetInterface0_3(), true },
126 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, 128 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true },
127 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, 129 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true },
128 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_2, 130 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_2,
129 PluginUDPSocketPrivate::GetInterface0_2(), true }, 131 PluginUDPSocketPrivate::GetInterface0_2(), true },
130 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_3, 132 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_3,
131 PluginUDPSocketPrivate::GetInterface0_3(), true }, 133 PluginUDPSocketPrivate::GetInterface0_3(), true },
132 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, 134 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true },
133 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true }, 135 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true },
134 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(), 136 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(),
135 true }, 137 true },
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 interface_name, NaClSrpcErrorString(srpc_result)); 183 interface_name, NaClSrpcErrorString(srpc_result));
182 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 184 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
183 interface_map[index].ppb_interface = NULL; 185 interface_map[index].ppb_interface = NULL;
184 ppb_interface = NULL; 186 ppb_interface = NULL;
185 } 187 }
186 interface_map[index].needs_browser_check = false; 188 interface_map[index].needs_browser_check = false;
187 return ppb_interface; 189 return ppb_interface;
188 } 190 }
189 191
190 } // namespace ppapi_proxy 192 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698