diff options
| author | mitsugu oyama | 2011-09-15 10:15:20 +0900 | 
|---|---|---|
| committer | mitsugu oyama | 2011-09-15 10:15:20 +0900 | 
| commit | 535f555cb7ad889d73f333191594a27991cea0dc (patch) | |
| tree | ddbec45a26cfb58d57db6f0227b6a5c72948b2d5 | |
| parent | 94852de8117dae019cba98fdb01a48078910443d (diff) | |
| download | vimperator-plugins-535f555cb7ad889d73f333191594a27991cea0dc.tar.bz2 | |
add comment
| -rw-r--r-- | modules/libDLImage.js | 32 | 
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;  | 
