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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 const net::BoundNetLog bound_net_log_; | 539 const net::BoundNetLog bound_net_log_; |
538 | 540 |
539 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 541 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
540 | 542 |
541 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 543 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
542 }; | 544 }; |
543 | 545 |
544 } // namespace content | 546 } // namespace content |
545 | 547 |
546 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 548 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |