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.3" | 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 |
(...skipping 21 matching lines...) Expand all Loading... |
36 // mutate the URL loader or cause it to be destroyed. | 36 // mutate the URL loader or cause it to be destroyed. |
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 |
OLD | NEW |