| 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_DOWNLOAD_FILE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
| 7 | 7 |
| 8 #include "content/browser/download/download_file.h" | 8 #include "content/browser/download/download_file.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| 11 #include <stdint.h> | 11 #include <stdint.h> |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <string> |
| 14 | 15 |
| 15 #include "base/files/file.h" | 16 #include "base/files/file.h" |
| 16 #include "base/macros.h" | 17 #include "base/macros.h" |
| 17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 18 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
| 19 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 20 #include "base/timer/timer.h" | 21 #include "base/timer/timer.h" |
| 21 #include "content/browser/byte_stream.h" | 22 #include "content/browser/byte_stream.h" |
| 22 #include "content/browser/download/base_file.h" | 23 #include "content/browser/download/base_file.h" |
| 23 #include "content/browser/download/rate_estimator.h" | 24 #include "content/browser/download/rate_estimator.h" |
| 24 #include "content/public/browser/download_save_info.h" | 25 #include "content/public/browser/download_save_info.h" |
| 25 #include "net/log/net_log.h" | 26 #include "net/log/net_log_with_source.h" |
| 26 | 27 |
| 27 namespace content { | 28 namespace content { |
| 28 class ByteStreamReader; | 29 class ByteStreamReader; |
| 29 class DownloadDestinationObserver; | 30 class DownloadDestinationObserver; |
| 30 class DownloadManager; | 31 class DownloadManager; |
| 31 struct DownloadCreateInfo; | 32 struct DownloadCreateInfo; |
| 32 | 33 |
| 33 class CONTENT_EXPORT DownloadFileImpl : public DownloadFile { | 34 class CONTENT_EXPORT DownloadFileImpl : public DownloadFile { |
| 34 public: | 35 public: |
| 35 // Takes ownership of the object pointed to by |request_handle|. | 36 // Takes ownership of the object pointed to by |request_handle|. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 base::WeakPtr<DownloadDestinationObserver> observer_; | 145 base::WeakPtr<DownloadDestinationObserver> observer_; |
| 145 | 146 |
| 146 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; | 147 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; |
| 147 | 148 |
| 148 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); | 149 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 } // namespace content | 152 } // namespace content |
| 152 | 153 |
| 153 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ | 154 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
| OLD | NEW |