           reader.onerror = (event) =>
             console.error event.target.error.code
             sendResponse "Cannot read file"
-
           reader.readAsArrayBuffer(file)
         , (e) ->
           sendResponse "Cannot read file"

    @currentCount = 0
    @totalCount = -1
    @chunkSize = 1000*1000*10
    @initLastDump()
    @dumpServerURL = "http://127.0.0.1:8080/"
    @checkIfNeedNewContext()

    return

  writeToDisk : (dump) =>
    @currentCount = 0
    window.requestFileSystem window.TEMPORARY, 1024*1024*1024, (@fs)=>
      @fs.root.getFile 'dump.json', {create: true}, (fileEntry)=>

