OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/browser/blob/blob_url_request_job.h" | 5 #include "webkit/browser/blob/blob_url_request_job.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 default: | 42 default: |
43 return false; | 43 return false; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 } // namespace | 47 } // namespace |
48 | 48 |
49 BlobURLRequestJob::BlobURLRequestJob( | 49 BlobURLRequestJob::BlobURLRequestJob( |
50 net::URLRequest* request, | 50 net::URLRequest* request, |
51 net::NetworkDelegate* network_delegate, | 51 net::NetworkDelegate* network_delegate, |
52 BlobData* blob_data, | 52 const scoped_refptr<BlobData>& blob_data, |
53 storage::FileSystemContext* file_system_context, | 53 storage::FileSystemContext* file_system_context, |
54 base::MessageLoopProxy* file_thread_proxy) | 54 base::MessageLoopProxy* file_thread_proxy) |
55 : net::URLRequestJob(request, network_delegate), | 55 : net::URLRequestJob(request, network_delegate), |
56 blob_data_(blob_data), | 56 blob_data_(blob_data), |
57 file_system_context_(file_system_context), | 57 file_system_context_(file_system_context), |
58 file_thread_proxy_(file_thread_proxy), | 58 file_thread_proxy_(file_thread_proxy), |
59 total_size_(0), | 59 total_size_(0), |
60 remaining_bytes_(0), | 60 remaining_bytes_(0), |
61 pending_get_file_info_count_(0), | 61 pending_get_file_info_count_(0), |
62 current_item_index_(0), | 62 current_item_index_(0), |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 .release(); | 581 .release(); |
582 break; | 582 break; |
583 default: | 583 default: |
584 NOTREACHED(); | 584 NOTREACHED(); |
585 } | 585 } |
586 DCHECK(reader); | 586 DCHECK(reader); |
587 index_to_reader_[index] = reader; | 587 index_to_reader_[index] = reader; |
588 } | 588 } |
589 | 589 |
590 } // namespace storage | 590 } // namespace storage |
OLD | NEW |