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

Unified Diff: webkit/plugins/ppapi/ppb_url_request_info_impl.cc

Issue 6711047: Fix up some types in the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mo' fixes 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: webkit/plugins/ppapi/ppb_url_request_info_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_url_request_info_impl.cc b/webkit/plugins/ppapi/ppb_url_request_info_impl.cc
index d2c5ef7eb8eb9716c99f90a7ccd1b6f97b5ed21d..b8c47e9045e23ec4aa54b6fd82809e5c9f350f0e 100644
--- a/webkit/plugins/ppapi/ppb_url_request_info_impl.cc
+++ b/webkit/plugins/ppapi/ppb_url_request_info_impl.cc
@@ -127,14 +127,15 @@ PP_Bool SetProperty(PP_Resource request_id,
}
PP_Bool AppendDataToBody(PP_Resource request_id,
- const char* data,
+ const void* data,
uint32_t len) {
scoped_refptr<PPB_URLRequestInfo_Impl> request(
Resource::GetAs<PPB_URLRequestInfo_Impl>(request_id));
if (!request)
return PP_FALSE;
- return BoolToPPBool(request->AppendDataToBody(std::string(data, len)));
+ return BoolToPPBool(request->AppendDataToBody(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.
}
PP_Bool AppendFileToBody(PP_Resource request_id,
« webkit/plugins/ppapi/ppb_url_loader_impl.cc ('K') | « webkit/plugins/ppapi/ppb_url_loader_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698