| 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 #ifndef CONTENT_BROWSER_DOWNLOAD_BASE_FILE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_BASE_FILE_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_BASE_FILE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_BASE_FILE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "content/browser/download/rate_estimator.h" |
| 15 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 16 #include "content/public/browser/download_interrupt_reasons.h" | 17 #include "content/public/browser/download_interrupt_reasons.h" |
| 17 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 18 #include "net/base/file_stream.h" | 19 #include "net/base/file_stream.h" |
| 19 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 20 #include "net/base/net_log.h" | 21 #include "net/base/net_log.h" |
| 21 | 22 |
| 22 namespace crypto { | 23 namespace crypto { |
| 23 class SecureHash; | 24 class SecureHash; |
| 24 } | 25 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 scoped_ptr<crypto::SecureHash> secure_hash_; | 163 scoped_ptr<crypto::SecureHash> secure_hash_; |
| 163 | 164 |
| 164 unsigned char sha256_hash_[kSha256HashLen]; | 165 unsigned char sha256_hash_[kSha256HashLen]; |
| 165 | 166 |
| 166 // Indicates that this class no longer owns the associated file, and so | 167 // Indicates that this class no longer owns the associated file, and so |
| 167 // won't delete it on destruction. | 168 // won't delete it on destruction. |
| 168 bool detached_; | 169 bool detached_; |
| 169 | 170 |
| 170 net::BoundNetLog bound_net_log_; | 171 net::BoundNetLog bound_net_log_; |
| 171 | 172 |
| 173 RateEstimator rate_estimator_; |
| 174 |
| 172 DISALLOW_COPY_AND_ASSIGN(BaseFile); | 175 DISALLOW_COPY_AND_ASSIGN(BaseFile); |
| 173 }; | 176 }; |
| 174 | 177 |
| 175 } // namespace content | 178 } // namespace content |
| 176 | 179 |
| 177 #endif // CONTENT_BROWSER_DOWNLOAD_BASE_FILE_H_ | 180 #endif // CONTENT_BROWSER_DOWNLOAD_BASE_FILE_H_ |
| OLD | NEW |