Chromium Code Reviews| Index: ppapi/proxy/ppb_url_request_info_proxy.cc |
| diff --git a/ppapi/proxy/ppb_url_request_info_proxy.cc b/ppapi/proxy/ppb_url_request_info_proxy.cc |
| index 385f13a94b9a94169d25abf03259f199653f1757..3006d9fedccfc21fb9ba3f56c8292a03f41f77f1 100644 |
| --- a/ppapi/proxy/ppb_url_request_info_proxy.cc |
| +++ b/ppapi/proxy/ppb_url_request_info_proxy.cc |
| @@ -79,7 +79,7 @@ PP_Bool SetProperty(PP_Resource request_id, |
| } |
| PP_Bool AppendDataToBody(PP_Resource request_id, |
| - const char* data, uint32_t len) { |
| + const void* data, uint32_t len) { |
| PluginDispatcher* dispatcher; |
| URLRequestInfo* request_info; |
| if (!DispatcherFromURLRequestInfo(request_id, &dispatcher, &request_info)) |
| @@ -87,7 +87,7 @@ PP_Bool AppendDataToBody(PP_Resource request_id, |
| dispatcher->Send(new PpapiHostMsg_PPBURLRequestInfo_AppendDataToBody( |
| INTERFACE_ID_PPB_URL_REQUEST_INFO, request_info->host_resource(), |
| - std::string(data, len))); |
| + std::string(reinterpret_cast<const char*>(data), len))); |
|
piman
2011/03/24 03:41:36
static_cast
neb
2011/03/25 21:27:10
Done.
|
| // TODO(brettw) do some validation. We should be able to tell on the plugin |
| // side whether the request will succeed or fail in the renderer. |