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

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

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More nacl fixes 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 17 matching lines...) Expand all
28 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_mouse_lock.h" 28 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_mouse_lock.h"
29 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_pdf.h" 29 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_pdf.h"
30 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_scrollbar.h" 30 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_scrollbar.h"
31 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_tcp_socket_private.h" 31 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_tcp_socket_private.h"
32 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_testing.h" 32 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_testing.h"
33 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_udp_socket_private.h" 33 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_udp_socket_private.h"
34 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_loader.h" 34 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_loader.h"
35 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_request_info.h" 35 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_request_info.h"
36 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_response_info.h" 36 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_response_info.h"
37 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h" 37 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h"
38 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_view.h"
38 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_widget.h" 39 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_widget.h"
39 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_zoom.h" 40 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_zoom.h"
40 #include "native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppb_rpc.h" 41 #include "native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppb_rpc.h"
41 #include "native_client/src/shared/ppapi_proxy/utility.h" 42 #include "native_client/src/shared/ppapi_proxy/utility.h"
42 43
43 namespace ppapi_proxy { 44 namespace ppapi_proxy {
44 45
45 namespace { 46 namespace {
46 47
47 struct InterfaceMapElement { 48 struct InterfaceMapElement {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, 87 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true },
87 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, 88 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true },
88 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(), 89 { PPB_UDPSOCKET_PRIVATE_INTERFACE, PluginUDPSocketPrivate::GetInterface(),
89 true }, 90 true },
90 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true }, 91 { PPB_URLLOADER_INTERFACE, PluginURLLoader::GetInterface(), true },
91 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true }, 92 { PPB_URLREQUESTINFO_INTERFACE, PluginURLRequestInfo::GetInterface(), true },
92 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(), 93 { PPB_URLRESPONSEINFO_INTERFACE, PluginURLResponseInfo::GetInterface(),
93 true }, 94 true },
94 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true }, 95 { PPB_VAR_INTERFACE, PluginVar::GetInterface(), true },
95 { PPB_VAR_INTERFACE_1_0, PluginVar::GetInterface1_0(), true }, 96 { PPB_VAR_INTERFACE_1_0, PluginVar::GetInterface1_0(), true },
97 { PPB_VIEW_INTERFACE, PluginView::GetInterface(), 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
104 // Returns the pointer to the interface proxy or NULL if not yet supported. 106 // Returns the pointer to the interface proxy or NULL if not yet supported.
105 // On the first invocation for a given interface that has proxy support, 107 // On the first invocation for a given interface that has proxy support,
(...skipping 28 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