| OLD | NEW |
| 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 #ifndef PPAPI_C_PPB_URL_LOADER_TRUSTED_H_ | 5 #ifndef PPAPI_C_PPB_URL_LOADER_TRUSTED_H_ |
| 6 #define PPAPI_C_PPB_URL_LOADER_TRUSTED_H_ | 6 #define PPAPI_C_PPB_URL_LOADER_TRUSTED_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
| 10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
| 11 | 11 |
| 12 #define PPB_URLLOADERTRUSTED_INTERFACE "PPB_URLLoaderTrusted;0.2" | 12 #define PPB_URLLOADERTRUSTED_INTERFACE "PPB_URLLoaderTrusted;0.3" |
| 13 | 13 |
| 14 // Callback that indicates the status of the download and upload for the | 14 // Callback that indicates the status of the download and upload for the |
| 15 // given URLLoader resource. | 15 // given URLLoader resource. |
| 16 typedef void (*PP_URLLoaderTrusted_StatusCallback)( | 16 typedef void (*PP_URLLoaderTrusted_StatusCallback)( |
| 17 PP_Instance pp_instance, | 17 PP_Instance pp_instance, |
| 18 PP_Resource pp_resource, | 18 PP_Resource pp_resource, |
| 19 int64_t bytes_sent, | 19 int64_t bytes_sent, |
| 20 int64_t total_bytes_to_be_sent, | 20 int64_t total_bytes_to_be_sent, |
| 21 int64_t bytes_received, | 21 int64_t bytes_received, |
| 22 int64_t total_bytes_to_be_received); | 22 int64_t total_bytes_to_be_received); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 // | 37 // |
| 38 // However, the proxy layer needs this information to push to the other | 38 // However, the proxy layer needs this information to push to the other |
| 39 // process, so we expose it here. Only one callback can be set per URL | 39 // process, so we expose it here. Only one callback can be set per URL |
| 40 // Loader. Setting to a NULL callback will disable it. | 40 // Loader. Setting to a NULL callback will disable it. |
| 41 void (*RegisterStatusCallback)(PP_Resource loader, | 41 void (*RegisterStatusCallback)(PP_Resource loader, |
| 42 PP_URLLoaderTrusted_StatusCallback cb); | 42 PP_URLLoaderTrusted_StatusCallback cb); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 #endif // PPAPI_C_PPB_URL_LOADER_H_ | 45 #endif // PPAPI_C_PPB_URL_LOADER_H_ |
| 46 | 46 |
| OLD | NEW |