OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 /* From dev/ppb_network_proxy_dev.idl modified Thu Jun 6 10:44:17 2013. */ |
| 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_NETWORK_PROXY_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_NETWORK_PROXY_DEV_H_ |
| 10 |
| 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_var.h" |
| 17 |
| 18 #define PPB_NETWORKPROXY_DEV_INTERFACE_0_1 "PPB_NetworkProxy(Dev);0.1" |
| 19 #define PPB_NETWORKPROXY_DEV_INTERFACE PPB_NETWORKPROXY_DEV_INTERFACE_0_1 |
| 20 |
| 21 /** |
| 22 * @file |
| 23 * This file defines the <code>PPB_NetworkProxy_Dev</code> interface. |
| 24 */ |
| 25 |
| 26 |
| 27 /** |
| 28 * @addtogroup Interfaces |
| 29 * @{ |
| 30 */ |
| 31 struct PPB_NetworkProxy_Dev_0_1 { |
| 32 /** |
| 33 * Retrieves the proxy that will be used for the given URL. The result will |
| 34 * be a string in PAC format. For more details about PAC format, please see |
| 35 * http://en.wikipedia.org/wiki/Proxy_auto-config |
| 36 */ |
| 37 int32_t (*GetProxyForURL)(PP_Instance instance, |
| 38 struct PP_Var url, |
| 39 struct PP_Var* proxy_string, |
| 40 struct PP_CompletionCallback callback); |
| 41 }; |
| 42 |
| 43 typedef struct PPB_NetworkProxy_Dev_0_1 PPB_NetworkProxy_Dev; |
| 44 /** |
| 45 * @} |
| 46 */ |
| 47 |
| 48 #endif /* PPAPI_C_DEV_PPB_NETWORK_PROXY_DEV_H_ */ |
| 49 |
OLD | NEW |