diff options
Diffstat (limited to 'webkit/blob/blob_url_request_job.cc')
-rw-r--r-- | webkit/blob/blob_url_request_job.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/webkit/blob/blob_url_request_job.cc b/webkit/blob/blob_url_request_job.cc index 5103458..62712d5 100644 --- a/webkit/blob/blob_url_request_job.cc +++ b/webkit/blob/blob_url_request_job.cc @@ -65,6 +65,12 @@ BlobURLRequestJob::~BlobURLRequestJob() { } void BlobURLRequestJob::Start() { + // Continue asynchronously. + MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( + this, &BlobURLRequestJob::DidStart)); +} + +void BlobURLRequestJob::DidStart() { // We only support GET request per the spec. if (request()->method() != "GET") { NotifyFailure(net::ERR_METHOD_NOT_SUPPORTED); @@ -77,9 +83,7 @@ void BlobURLRequestJob::Start() { return; } - // Continue asynchronously. - MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( - this, &BlobURLRequestJob::CountSize)); + CountSize(); } void BlobURLRequestJob::Kill() { |