Index: ppapi/proxy/ppb_url_loader_proxy.h |
=================================================================== |
--- ppapi/proxy/ppb_url_loader_proxy.h (revision 72517) |
+++ ppapi/proxy/ppb_url_loader_proxy.h (working copy) |
@@ -14,6 +14,7 @@ |
#include "ppapi/cpp/completion_callback.h" |
#include "ppapi/proxy/interface_proxy.h" |
#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" |
+#include "ppapi/proxy/serialized_resource.h" |
struct PPB_URLLoader; |
struct PPB_URLLoaderTrusted; |
@@ -21,6 +22,8 @@ |
namespace pp { |
namespace proxy { |
+struct PPBURLLoader_UpdateProgress_Params; |
+ |
class PPB_URLLoader_Proxy : public InterfaceProxy { |
public: |
PPB_URLLoader_Proxy(Dispatcher* dispatcher, const void* target_interface); |
@@ -30,8 +33,9 @@ |
// they are also provided to PPP_Instance.OnMsgHandleDocumentLoad. This |
// function allows the proxy for DocumentLoad to create the correct plugin |
// proxied info for the given browser-supplied URLLoader resource ID. |
- static void TrackPluginResource(PP_Instance instance, |
- PP_Resource url_loader_resource); |
+ static PP_Resource TrackPluginResource( |
+ PP_Instance instance, |
+ SerializedResource url_loader_resource); |
const PPB_URLLoader* ppb_url_loader_target() const { |
return reinterpret_cast<const PPB_URLLoader*>(target_interface()); |
@@ -48,27 +52,26 @@ |
// Plugin->renderer message handlers. |
void OnMsgCreate(PP_Instance instance, |
- PP_Resource* result); |
- void OnMsgOpen(PP_Resource loader, |
- PP_Resource request_info, |
+ SerializedResource* result); |
+ void OnMsgOpen(SerializedResource loader, |
+ SerializedResource request_info, |
uint32_t serialized_callback); |
- void OnMsgFollowRedirect(PP_Resource loader, |
+ void OnMsgFollowRedirect(SerializedResource loader, |
uint32_t serialized_callback); |
- void OnMsgGetResponseInfo(PP_Resource loader, |
- PP_Resource* result); |
- void OnMsgReadResponseBody(PP_Resource loader, |
+ void OnMsgGetResponseInfo(SerializedResource loader, |
+ SerializedResource* result); |
+ void OnMsgReadResponseBody(PP_Instance instance, |
+ SerializedResource loader, |
int32_t bytes_to_read); |
- void OnMsgFinishStreamingToFile(PP_Resource loader, |
+ void OnMsgFinishStreamingToFile(SerializedResource loader, |
uint32_t serialized_callback); |
- void OnMsgClose(PP_Resource loader); |
+ void OnMsgClose(SerializedResource loader); |
// Renderer->plugin message handlers. |
- void OnMsgUpdateProgress(PP_Resource resource, |
- int64_t bytes_sent, |
- int64_t total_bytes_to_be_sent, |
- int64_t bytes_received, |
- int64_t total_bytes_to_be_received); |
- void OnMsgReadResponseBodyAck(PP_Resource pp_resource, |
+ void OnMsgUpdateProgress( |
+ const PPBURLLoader_UpdateProgress_Params& params); |
+ void OnMsgReadResponseBodyAck(PP_Instance instance, |
+ SerializedResource pp_resource, |
int32_t result, |
const std::string& data); |
@@ -97,7 +100,7 @@ |
private: |
// Plugin->renderer message handlers. |
- void OnMsgGrantUniversalAccess(PP_Resource loader); |
+ void OnMsgGrantUniversalAccess(SerializedResource loader); |
}; |
} // namespace proxy |