| OLD | NEW |
| 1 // Copyright (c) 2010 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2010 The Native Client 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 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ |
| 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/dev/ppb_var_deprecated.h" | 8 #include "ppapi/c/dev/ppb_var_deprecated.h" |
| 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
| 11 #include "ppapi/c/pp_module.h" | 11 #include "ppapi/c/pp_module.h" |
| 12 #include "ppapi/c/ppb.h" | 12 #include "ppapi/c/ppb.h" |
| 13 #include "ppapi/c/ppb_core.h" | 13 #include "ppapi/c/ppb_core.h" |
| 14 #include "ppapi/c/ppb_graphics_2d.h" | 14 #include "ppapi/c/ppb_graphics_2d.h" |
| 15 #include "ppapi/c/ppb_image_data.h" | 15 #include "ppapi/c/ppb_image_data.h" |
| 16 #include "ppapi/c/ppb_instance.h" | 16 #include "ppapi/c/ppb_instance.h" |
| 17 #include "ppapi/c/ppb_url_loader.h" |
| 17 #include "ppapi/c/ppb_url_request_info.h" | 18 #include "ppapi/c/ppb_url_request_info.h" |
| 18 #include "ppapi/c/ppb_url_response_info.h" | 19 #include "ppapi/c/ppb_url_response_info.h" |
| 19 | 20 |
| 20 struct NaClSrpcRpc; | 21 struct NaClSrpcRpc; |
| 21 struct NaClSrpcChannel; | 22 struct NaClSrpcChannel; |
| 22 | 23 |
| 23 namespace ppapi_proxy { | 24 namespace ppapi_proxy { |
| 24 | 25 |
| 25 // These functions handle the browser-side (trusted code) mapping of a browser | 26 // These functions handle the browser-side (trusted code) mapping of a browser |
| 26 // Instance to instance-specific data, such as the SRPC communication channel. | 27 // Instance to instance-specific data, such as the SRPC communication channel. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const void* GetBrowserInterface(const char* interface_name); | 61 const void* GetBrowserInterface(const char* interface_name); |
| 61 const void* GetBrowserInterfaceSafe(const char* interface_name); | 62 const void* GetBrowserInterfaceSafe(const char* interface_name); |
| 62 // Functions marked "shared" are to be provided by both the browser and the | 63 // Functions marked "shared" are to be provided by both the browser and the |
| 63 // plugin side of the proxy, so they can be used by the shared proxy code | 64 // plugin side of the proxy, so they can be used by the shared proxy code |
| 64 // under both trusted and untrusted compilation. | 65 // under both trusted and untrusted compilation. |
| 65 const PPB_Core* PPBCoreInterface(); // shared | 66 const PPB_Core* PPBCoreInterface(); // shared |
| 66 const PPB_Graphics2D* PPBGraphics2DInterface(); | 67 const PPB_Graphics2D* PPBGraphics2DInterface(); |
| 67 const PPB_ImageData* PPBImageDataInterface(); | 68 const PPB_ImageData* PPBImageDataInterface(); |
| 68 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface(); | 69 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface(); |
| 69 const PPB_Instance* PPBInstanceInterface(); | 70 const PPB_Instance* PPBInstanceInterface(); |
| 71 const PPB_URLLoader* PPBURLLoaderInterface(); |
| 70 const PPB_URLRequestInfo* PPBURLRequestInfoInterface(); | 72 const PPB_URLRequestInfo* PPBURLRequestInfoInterface(); |
| 71 const PPB_URLResponseInfo* PPBURLResponseInfoInterface(); | 73 const PPB_URLResponseInfo* PPBURLResponseInfoInterface(); |
| 72 const PPB_Var_Deprecated* PPBVarInterface(); // shared | 74 const PPB_Var_Deprecated* PPBVarInterface(); // shared |
| 73 | 75 |
| 74 // PPAPI constants used in the proxy. | 76 // PPAPI constants used in the proxy. |
| 75 extern const PP_Resource kInvalidResourceId; | 77 extern const PP_Resource kInvalidResourceId; |
| 76 | 78 |
| 77 } // namespace ppapi_proxy | 79 } // namespace ppapi_proxy |
| 78 | 80 |
| 79 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ | 81 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_ |
| OLD | NEW |