| 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_ITEM_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // outlives the DownloadItemImpl. | 49 // outlives the DownloadItemImpl. |
| 50 | 50 |
| 51 // Constructing from persistent store: | 51 // Constructing from persistent store: |
| 52 // |bound_net_log| is constructed externally for our use. | 52 // |bound_net_log| is constructed externally for our use. |
| 53 DownloadItemImpl(DownloadItemImplDelegate* delegate, | 53 DownloadItemImpl(DownloadItemImplDelegate* delegate, |
| 54 uint32 id, | 54 uint32 id, |
| 55 const base::FilePath& current_path, | 55 const base::FilePath& current_path, |
| 56 const base::FilePath& target_path, | 56 const base::FilePath& target_path, |
| 57 const std::vector<GURL>& url_chain, | 57 const std::vector<GURL>& url_chain, |
| 58 const GURL& referrer_url, | 58 const GURL& referrer_url, |
| 59 const std::string& mime_type, |
| 60 const std::string& original_mime_type, |
| 59 const base::Time& start_time, | 61 const base::Time& start_time, |
| 60 const base::Time& end_time, | 62 const base::Time& end_time, |
| 61 const std::string& etag, | 63 const std::string& etag, |
| 62 const std::string& last_modified, | 64 const std::string& last_modified, |
| 63 int64 received_bytes, | 65 int64 received_bytes, |
| 64 int64 total_bytes, | 66 int64 total_bytes, |
| 65 DownloadItem::DownloadState state, | 67 DownloadItem::DownloadState state, |
| 66 DownloadDangerType danger_type, | 68 DownloadDangerType danger_type, |
| 67 DownloadInterruptReason interrupt_reason, | 69 DownloadInterruptReason interrupt_reason, |
| 68 bool opened, | 70 bool opened, |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 const net::BoundNetLog bound_net_log_; | 553 const net::BoundNetLog bound_net_log_; |
| 552 | 554 |
| 553 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 555 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
| 554 | 556 |
| 555 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 557 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
| 556 }; | 558 }; |
| 557 | 559 |
| 558 } // namespace content | 560 } // namespace content |
| 559 | 561 |
| 560 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 562 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
| OLD | NEW |