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 // File method ordering: Methods in this file are in the same order as | 5 // File method ordering: Methods in this file are in the same order as |
6 // in download_item_impl.h, with the following exception: The public | 6 // in download_item_impl.h, with the following exception: The public |
7 // interface Start is placed in chronological order with the other | 7 // interface Start is placed in chronological order with the other |
8 // (private) routines that together define a DownloadItem's state | 8 // (private) routines that together define a DownloadItem's state |
9 // transitions as the download progresses. See "Download progression | 9 // transitions as the download progresses. See "Download progression |
10 // cascade" later in this file. | 10 // cascade" later in this file. |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 case DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE: | 920 case DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE: |
921 mode = RESUME_MODE_USER_RESTART; | 921 mode = RESUME_MODE_USER_RESTART; |
922 break; | 922 break; |
923 | 923 |
924 case DOWNLOAD_INTERRUPT_REASON_NONE: | 924 case DOWNLOAD_INTERRUPT_REASON_NONE: |
925 case DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED: | 925 case DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED: |
926 case DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT: | 926 case DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT: |
927 case DOWNLOAD_INTERRUPT_REASON_USER_CANCELED: | 927 case DOWNLOAD_INTERRUPT_REASON_USER_CANCELED: |
928 case DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED: | 928 case DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED: |
929 case DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED: | 929 case DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED: |
| 930 case DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED: |
| 931 case DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM: |
930 mode = RESUME_MODE_INVALID; | 932 mode = RESUME_MODE_INVALID; |
931 break; | 933 break; |
932 } | 934 } |
933 | 935 |
934 return mode; | 936 return mode; |
935 } | 937 } |
936 | 938 |
937 void DownloadItemImpl::MergeOriginInfoOnResume( | 939 void DownloadItemImpl::MergeOriginInfoOnResume( |
938 const DownloadCreateInfo& new_create_info) { | 940 const DownloadCreateInfo& new_create_info) { |
939 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 941 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1800 case RESUME_MODE_USER_CONTINUE: | 1802 case RESUME_MODE_USER_CONTINUE: |
1801 return "USER_CONTINUE"; | 1803 return "USER_CONTINUE"; |
1802 case RESUME_MODE_USER_RESTART: | 1804 case RESUME_MODE_USER_RESTART: |
1803 return "USER_RESTART"; | 1805 return "USER_RESTART"; |
1804 } | 1806 } |
1805 NOTREACHED() << "Unknown resume mode " << mode; | 1807 NOTREACHED() << "Unknown resume mode " << mode; |
1806 return "unknown"; | 1808 return "unknown"; |
1807 } | 1809 } |
1808 | 1810 |
1809 } // namespace content | 1811 } // namespace content |
OLD | NEW |