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

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, 9 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface(), 106 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface(),
107 true }, 107 true },
108 { PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, 108 { PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0,
109 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(), 109 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(),
110 true }, 110 true },
111 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, 111 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true },
112 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, 112 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true },
113 { PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE, 113 { PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE,
114 PluginTCPServerSocketPrivate::GetInterface(), 114 PluginTCPServerSocketPrivate::GetInterface(),
115 true }, 115 true },
116 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(), 116 { PPB_TCPSOCKET_PRIVATE_INTERFACE_0_4,
117 true }, 117 PluginTCPSocketPrivate::GetInterface0_4(), true },
118 { PPB_TCPSOCKET_PRIVATE_INTERFACE_0_3,
119 PluginTCPSocketPrivate::GetInterface0_3(), true },
118 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, 120 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true },
119 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, 121 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true },
120 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_2, 122 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_2,
121 PluginUDPSocketPrivate::GetInterface0_2(), true }, 123 PluginUDPSocketPrivate::GetInterface0_2(), true },
122 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_3, 124 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_3,
123 PluginUDPSocketPrivate::GetInterface0_3(), true }, 125 PluginUDPSocketPrivate::GetInterface0_3(), true },
124 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, 126 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true },
125 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true }, 127 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true },
126 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(), 128 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(),
127 true }, 129 true },
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 interface_name, NaClSrpcErrorString(srpc_result)); 175 interface_name, NaClSrpcErrorString(srpc_result));
174 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 176 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
175 interface_map[index].ppb_interface = NULL; 177 interface_map[index].ppb_interface = NULL;
176 ppb_interface = NULL; 178 ppb_interface = NULL;
177 } 179 }
178 interface_map[index].needs_browser_check = false; 180 interface_map[index].needs_browser_check = false;
179 return ppb_interface; 181 return ppb_interface;
180 } 182 }
181 183
182 } // namespace ppapi_proxy 184 } // namespace ppapi_proxy
OLDNEW
« no previous file with comments | « ppapi/cpp/private/tcp_socket_private.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_tcp_socket_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698