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

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

Issue 9022021: Proxy PPB_ArrayBuffer_Dev, make them work over Messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pre-review cleanup Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(), 84 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(),
85 true }, 85 true },
86 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, 86 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true },
87 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, 87 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true },
88 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(), 88 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(),
89 true }, 89 true },
90 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, 90 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true },
91 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true }, 91 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true },
92 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(), 92 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(),
93 true }, 93 true },
94 { PPB_VAR_ARRAY_BUFFER_DEV_INTERFACE, PluginVar::GetArrayBufferInterface(),
95 true },
94 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true }, 96 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true },
95 { PPB_VAR_INTERFACE_1_0, PluginVar::GetInterface1_0(), true }, 97 { PPB_VAR_INTERFACE_1_0, PluginVar::GetInterface1_0(), true },
96 { PPB_WHEEL_INPUT_EVENT_INTERFACE, PluginInputEvent::GetWheelInterface(), 98 { PPB_WHEEL_INPUT_EVENT_INTERFACE, PluginInputEvent::GetWheelInterface(),
97 true }, 99 true },
98 { PPB_WIDGET_DEV_INTERFACE, PluginWidget::GetInterface(), true }, 100 { PPB_WIDGET_DEV_INTERFACE, PluginWidget::GetInterface(), true },
99 { PPB_ZOOM_DEV_INTERFACE, PluginZoom::GetInterface(), true }, 101 { PPB_ZOOM_DEV_INTERFACE, PluginZoom::GetInterface(), true },
100 }; 102 };
101 103
102 } // namespace 104 } // namespace
103 105
(...skipping 30 matching lines...) Expand all
134 interface_name, NaClSrpcErrorString(srpc_result)); 136 interface_name, NaClSrpcErrorString(srpc_result));
135 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 137 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
136 interface_map[index].ppb_interface = NULL; 138 interface_map[index].ppb_interface = NULL;
137 ppb_interface = NULL; 139 ppb_interface = NULL;
138 } 140 }
139 interface_map[index].needs_browser_check = false; 141 interface_map[index].needs_browser_check = false;
140 return ppb_interface; 142 return ppb_interface;
141 } 143 }
142 144
143 } // namespace ppapi_proxy 145 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698