| 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 "net/base/upload_element.h" | 5 #include "net/base/upload_element.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/file_util.h" | |
| 10 #include "base/threading/thread_restrictions.h" | |
| 11 #include "net/base/file_stream.h" | 9 #include "net/base/file_stream.h" |
| 12 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 13 | 11 |
| 14 namespace net { | 12 namespace net { |
| 15 | 13 |
| 16 UploadElement::UploadElement() | 14 UploadElement::UploadElement() |
| 17 : type_(TYPE_BYTES), | 15 : type_(TYPE_BYTES), |
| 18 bytes_start_(NULL), | 16 bytes_start_(NULL), |
| 19 bytes_length_(0), | 17 bytes_length_(0), |
| 20 file_range_offset_(0), | 18 file_range_offset_(0), |
| 21 file_range_length_(kuint64max) { | 19 file_range_length_(kuint64max) { |
| 22 } | 20 } |
| 23 | 21 |
| 24 UploadElement::~UploadElement() { | 22 UploadElement::~UploadElement() { |
| 25 } | 23 } |
| 26 | 24 |
| 27 } // namespace net | 25 } // namespace net |
| OLD | NEW |