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

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

Issue 9192009: WebSocket Pepper API: make the API out of dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for land 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) 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 true }, 96 true },
97 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, 97 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true },
98 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true }, 98 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true },
99 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(), 99 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(),
100 true }, 100 true },
101 { PPB_VAR_ARRAY_BUFFER_INTERFACE, PluginVar::GetArrayBufferInterface(), 101 { PPB_VAR_ARRAY_BUFFER_INTERFACE, PluginVar::GetArrayBufferInterface(),
102 true }, 102 true },
103 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true }, 103 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true },
104 { PPB_VAR_INTERFACE_1_0, PluginVar::GetInterface1_0(), true }, 104 { PPB_VAR_INTERFACE_1_0, PluginVar::GetInterface1_0(), true },
105 { PPB_VIEW_INTERFACE, PluginView::GetInterface(), true }, 105 { PPB_VIEW_INTERFACE, PluginView::GetInterface(), true },
106 { PPB_WEBSOCKET_DEV_INTERFACE, PluginWebSocket::GetInterface(), 106 { PPB_WEBSOCKET_INTERFACE, PluginWebSocket::GetInterface(),
107 true }, 107 true },
108 { PPB_WHEEL_INPUT_EVENT_INTERFACE, PluginInputEvent::GetWheelInterface(), 108 { PPB_WHEEL_INPUT_EVENT_INTERFACE, PluginInputEvent::GetWheelInterface(),
109 true }, 109 true },
110 { PPB_WIDGET_DEV_INTERFACE, PluginWidget::GetInterface(), true }, 110 { PPB_WIDGET_DEV_INTERFACE, PluginWidget::GetInterface(), true },
111 { PPB_ZOOM_DEV_INTERFACE, PluginZoom::GetInterface(), true }, 111 { PPB_ZOOM_DEV_INTERFACE, PluginZoom::GetInterface(), true },
112 }; 112 };
113 113
114 } // namespace 114 } // namespace
115 115
116 // Returns the pointer to the interface proxy or NULL if not yet supported. 116 // Returns the pointer to the interface proxy or NULL if not yet supported.
(...skipping 29 matching lines...) Expand all
146 interface_name, NaClSrpcErrorString(srpc_result)); 146 interface_name, NaClSrpcErrorString(srpc_result));
147 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 147 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
148 interface_map[index].ppb_interface = NULL; 148 interface_map[index].ppb_interface = NULL;
149 ppb_interface = NULL; 149 ppb_interface = NULL;
150 } 150 }
151 interface_map[index].needs_browser_check = false; 151 interface_map[index].needs_browser_check = false;
152 return ppb_interface; 152 return ppb_interface;
153 } 153 }
154 154
155 } // namespace ppapi_proxy 155 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698