From b552f1787ca864e458e4c14e6012c20b423161a5 Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Mon, 4 Oct 2010 19:43:16 +0000 Subject: Pepper: Update AppendDataToBody to take a data pointer and length ... (... instead of a PP_Var). This allows binary data to be appended to POSTs. This rolls DEPS to pick up PPAPI r269. BUG=none TEST=Pepper URLLoader tests Review URL: http://codereview.chromium.org/3548009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61401 0039d316-1c4b-4281-b951-d872f2087c98 --- DEPS | 2 +- webkit/glue/plugins/pepper_url_request_info.cc | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/DEPS b/DEPS index 54fd36e..18a0070 100644 --- a/DEPS +++ b/DEPS @@ -169,7 +169,7 @@ deps = { Var("libvpx_revision"), "src/third_party/ppapi": - (Var("googlecode_url") % "ppapi") + "/trunk@268", + (Var("googlecode_url") % "ppapi") + "/trunk@269", "src/third_party/libjingle/source": (Var("googlecode_url") % "libjingle") + "/trunk@" + diff --git a/webkit/glue/plugins/pepper_url_request_info.cc b/webkit/glue/plugins/pepper_url_request_info.cc index 24348b7..21e17ea 100644 --- a/webkit/glue/plugins/pepper_url_request_info.cc +++ b/webkit/glue/plugins/pepper_url_request_info.cc @@ -80,17 +80,13 @@ bool SetProperty(PP_Resource request_id, return false; } -bool AppendDataToBody(PP_Resource request_id, PP_Var var) { +bool AppendDataToBody(PP_Resource request_id, const char* data, uint32_t len) { scoped_refptr request( Resource::GetAs(request_id)); if (!request) return false; - scoped_refptr data(StringVar::FromPPVar(var)); - if (!data) - return false; - - return request->AppendDataToBody(data->value()); + return request->AppendDataToBody(std::string(data, len)); } bool AppendFileToBody(PP_Resource request_id, -- cgit v1.1