From 535f555cb7ad889d73f333191594a27991cea0dc Mon Sep 17 00:00:00 2001 From: mitsugu oyama Date: Thu, 15 Sep 2011 10:15:20 +0900 Subject: add comment --- modules/libDLImage.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'modules') diff --git a/modules/libDLImage.js b/modules/libDLImage.js index b2dabda..3dbd996 100644 --- a/modules/libDLImage.js +++ b/modules/libDLImage.js @@ -1,3 +1,35 @@ +// +// libDLImage.js +// +// libDLImage.js is code for download image data. +// libDLImage.js is ran on ChromeWorker thread. +// +// +// accept message: +// { +// 'imageUrl' :string, +// 'savePath' :string, +// 'refererUrl':string, +// 'cookie' :string +// } +// +// imageUrl : remote image URL +// savePath : full path on local strage +// refererUrl : referer string (optional) +// cookie : cookie string (optional) +// +// +// send message: +// { +// 'status' :string, +// 'message' :JSObject, +// 'savePath':string +// } +// +// status : 'normarl' or 'error' +// message : error message (string) or image data (binary) +// savePath : full path on local strage ( only success ) +// var JSONMessage; var xhrImg; -- cgit v1.2.3