Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: ppapi/proxy/ppb_url_request_info_proxy.cc

Issue 6711047: Fix up some types in the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed constness on MemFree. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)));
// 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.

Powered by Google App Engine
This is Rietveld 408576698