aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authormitsugu oyama2011-09-15 10:15:20 +0900
committermitsugu oyama2011-09-15 10:15:20 +0900
commit535f555cb7ad889d73f333191594a27991cea0dc (patch)
treeddbec45a26cfb58d57db6f0227b6a5c72948b2d5 /modules
parent94852de8117dae019cba98fdb01a48078910443d (diff)
downloadvimperator-plugins-535f555cb7ad889d73f333191594a27991cea0dc.tar.bz2
add comment
Diffstat (limited to 'modules')
-rw-r--r--modules/libDLImage.js32
1 files changed, 32 insertions, 0 deletions
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;