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 14 matching lines...) Expand all Loading... |
25 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
26 #include "net/base/net_log.h" | 26 #include "net/base/net_log.h" |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 class DownloadFile; | 29 class DownloadFile; |
30 class DownloadItemImplDelegate; | 30 class DownloadItemImplDelegate; |
31 | 31 |
32 // See download_item.h for usage. | 32 // See download_item.h for usage. |
33 class CONTENT_EXPORT DownloadItemImpl | 33 class CONTENT_EXPORT DownloadItemImpl |
34 : public DownloadItem, | 34 : public DownloadItem, |
35 public NON_EXPORTED_BASE(DownloadDestinationObserver) { | 35 public DownloadDestinationObserver { |
36 public: | 36 public: |
37 enum ResumeMode { | 37 enum ResumeMode { |
38 RESUME_MODE_INVALID = 0, | 38 RESUME_MODE_INVALID = 0, |
39 RESUME_MODE_IMMEDIATE_CONTINUE, | 39 RESUME_MODE_IMMEDIATE_CONTINUE, |
40 RESUME_MODE_IMMEDIATE_RESTART, | 40 RESUME_MODE_IMMEDIATE_RESTART, |
41 RESUME_MODE_USER_CONTINUE, | 41 RESUME_MODE_USER_CONTINUE, |
42 RESUME_MODE_USER_RESTART | 42 RESUME_MODE_USER_RESTART |
43 }; | 43 }; |
44 | 44 |
45 // The maximum number of attempts we will make to resume automatically. | 45 // The maximum number of attempts we will make to resume automatically. |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 const net::BoundNetLog bound_net_log_; | 481 const net::BoundNetLog bound_net_log_; |
482 | 482 |
483 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 483 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
484 | 484 |
485 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 485 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
486 }; | 486 }; |
487 | 487 |
488 } // namespace content | 488 } // namespace content |
489 | 489 |
490 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 490 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |