| OLD | NEW |
| 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 #ifndef PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ | 5 #ifndef PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ |
| 6 #define PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ | 6 #define PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // On failure (returns false), the host implementation will generate a new | 31 // On failure (returns false), the host implementation will generate a new |
| 32 // instance ID and try again. | 32 // instance ID and try again. |
| 33 void (*SetReserveInstanceIDCallback)( | 33 void (*SetReserveInstanceIDCallback)( |
| 34 PP_Module module, | 34 PP_Module module, |
| 35 PP_Bool (*is_seen)(PP_Module, PP_Instance)); | 35 PP_Bool (*is_seen)(PP_Module, PP_Instance)); |
| 36 | 36 |
| 37 // Returns the number of bytes synchronously readable out of the URLLoader's | 37 // Returns the number of bytes synchronously readable out of the URLLoader's |
| 38 // buffer. Returns 0 on failure or if the url loader doesn't have any data | 38 // buffer. Returns 0 on failure or if the url loader doesn't have any data |
| 39 // now. | 39 // now. |
| 40 int32_t (*GetURLLoaderBufferedBytes)(PP_Resource url_loader); | 40 int32_t (*GetURLLoaderBufferedBytes)(PP_Resource url_loader); |
| 41 |
| 42 // Allows adding additional refcounts to the PluginModule that owns the |
| 43 // proxy dispatcher (and all interface proxies). For every AddRef call |
| 44 // there must be a corresponding release call. |
| 45 void (*AddRefModule)(PP_Module module); |
| 46 void (*ReleaseModule)(PP_Module module); |
| 41 }; | 47 }; |
| 42 | 48 |
| 43 #endif // PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ | 49 #endif // PPAPI_C_PRIVATE_PROXY_PRIVATE_H_ |
| OLD | NEW |