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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 // Start time for recording statistics. | 486 // Start time for recording statistics. |
487 base::TimeTicks start_tick_; | 487 base::TimeTicks start_tick_; |
488 | 488 |
489 // The current state of this download. | 489 // The current state of this download. |
490 DownloadInternalState state_; | 490 DownloadInternalState state_; |
491 | 491 |
492 // Current danger type for the download. | 492 // Current danger type for the download. |
493 DownloadDangerType danger_type_; | 493 DownloadDangerType danger_type_; |
494 | 494 |
495 // The views of this item in the download shelf and download contents. | 495 // The views of this item in the download shelf and download contents. |
496 ObserverList<Observer> observers_; | 496 base::ObserverList<Observer> observers_; |
497 | 497 |
498 // Time the download was started. | 498 // Time the download was started. |
499 base::Time start_time_; | 499 base::Time start_time_; |
500 | 500 |
501 // Time the download completed. | 501 // Time the download completed. |
502 base::Time end_time_; | 502 base::Time end_time_; |
503 | 503 |
504 // Our delegate. | 504 // Our delegate. |
505 DownloadItemImplDelegate* delegate_; | 505 DownloadItemImplDelegate* delegate_; |
506 | 506 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 const net::BoundNetLog bound_net_log_; | 551 const net::BoundNetLog bound_net_log_; |
552 | 552 |
553 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 553 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
554 | 554 |
555 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 555 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
556 }; | 556 }; |
557 | 557 |
558 } // namespace content | 558 } // namespace content |
559 | 559 |
560 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 560 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |