| 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/blob/blob_url_request_job.h" | 5 #include "webkit/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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 } // namespace | 62 } // namespace |
| 63 | 63 |
| 64 BlobURLRequestJob::BlobURLRequestJob( | 64 BlobURLRequestJob::BlobURLRequestJob( |
| 65 net::URLRequest* request, | 65 net::URLRequest* request, |
| 66 net::NetworkDelegate* network_delegate, | 66 net::NetworkDelegate* network_delegate, |
| 67 BlobData* blob_data, | 67 BlobData* blob_data, |
| 68 fileapi::FileSystemContext* file_system_context, | 68 fileapi::FileSystemContext* file_system_context, |
| 69 base::MessageLoopProxy* file_thread_proxy) | 69 base::MessageLoopProxy* file_thread_proxy) |
| 70 : net::URLRequestJob(request, network_delegate), | 70 : net::URLRequestJob(request, network_delegate), |
| 71 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)), | 71 weak_factory_(this), |
| 72 blob_data_(blob_data), | 72 blob_data_(blob_data), |
| 73 file_system_context_(file_system_context), | 73 file_system_context_(file_system_context), |
| 74 file_thread_proxy_(file_thread_proxy), | 74 file_thread_proxy_(file_thread_proxy), |
| 75 total_size_(0), | 75 total_size_(0), |
| 76 remaining_bytes_(0), | 76 remaining_bytes_(0), |
| 77 pending_get_file_info_count_(0), | 77 pending_get_file_info_count_(0), |
| 78 current_item_index_(0), | 78 current_item_index_(0), |
| 79 current_item_offset_(0), | 79 current_item_offset_(0), |
| 80 error_(false), | 80 error_(false), |
| 81 headers_set_(false), | 81 headers_set_(false), |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 item.expected_modification_time()).release(); | 598 item.expected_modification_time()).release(); |
| 599 break; | 599 break; |
| 600 default: | 600 default: |
| 601 NOTREACHED(); | 601 NOTREACHED(); |
| 602 } | 602 } |
| 603 DCHECK(reader); | 603 DCHECK(reader); |
| 604 index_to_reader_[index] = reader; | 604 index_to_reader_[index] = reader; |
| 605 } | 605 } |
| 606 | 606 |
| 607 } // namespace webkit_blob | 607 } // namespace webkit_blob |
| OLD | NEW |