Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: content/browser/download/download_item_impl.cc

Issue 2528483003: [Android Downloads] Long-press menu item "Download Link" should delegate job to OfflinePages backen… (Closed)
Patch Set: removed unnecessary #include Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 case DOWNLOAD_INTERRUPT_REASON_NONE: 934 case DOWNLOAD_INTERRUPT_REASON_NONE:
935 case DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST: 935 case DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST:
936 case DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED: 936 case DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED:
937 case DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT: 937 case DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT:
938 case DOWNLOAD_INTERRUPT_REASON_USER_CANCELED: 938 case DOWNLOAD_INTERRUPT_REASON_USER_CANCELED:
939 case DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED: 939 case DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED:
940 case DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED: 940 case DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED:
941 case DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED: 941 case DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED:
942 case DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM: 942 case DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM:
943 case DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN: 943 case DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN:
944 case DOWNLOAD_INTERRUPT_REASON_PAGE_DOWNLOAD_HANDOFF:
944 // Unhandled. 945 // Unhandled.
945 return RESUME_MODE_INVALID; 946 return RESUME_MODE_INVALID;
946 } 947 }
947 948
948 if (user_action_required && restart_required) 949 if (user_action_required && restart_required)
949 return RESUME_MODE_USER_RESTART; 950 return RESUME_MODE_USER_RESTART;
950 951
951 if (restart_required) 952 if (restart_required)
952 return RESUME_MODE_IMMEDIATE_RESTART; 953 return RESUME_MODE_IMMEDIATE_RESTART;
953 954
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 case RESUME_MODE_USER_CONTINUE: 2117 case RESUME_MODE_USER_CONTINUE:
2117 return "USER_CONTINUE"; 2118 return "USER_CONTINUE";
2118 case RESUME_MODE_USER_RESTART: 2119 case RESUME_MODE_USER_RESTART:
2119 return "USER_RESTART"; 2120 return "USER_RESTART";
2120 } 2121 }
2121 NOTREACHED() << "Unknown resume mode " << mode; 2122 NOTREACHED() << "Unknown resume mode " << mode;
2122 return "unknown"; 2123 return "unknown";
2123 } 2124 }
2124 2125
2125 } // namespace content 2126 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698