summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 19:43:16 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 19:43:16 +0000
commitb552f1787ca864e458e4c14e6012c20b423161a5 (patch)
treed8c3014a0c364b5cbe12eab4790264359b03c30f
parentf543cc068f7d6db7bc08b8474b6d98651e33f6ab (diff)
downloadchromium_src-b552f1787ca864e458e4c14e6012c20b423161a5.zip
chromium_src-b552f1787ca864e458e4c14e6012c20b423161a5.tar.gz
chromium_src-b552f1787ca864e458e4c14e6012c20b423161a5.tar.bz2
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
-rw-r--r--DEPS2
-rw-r--r--webkit/glue/plugins/pepper_url_request_info.cc8
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<URLRequestInfo> request(
Resource::GetAs<URLRequestInfo>(request_id));
if (!request)
return false;
- scoped_refptr<StringVar> 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,