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

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

Issue 11150027: Handle the case where IAttachmentExecute::Save() deletes a downloaded file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Address comments + Update strings Created 8 years, 1 month 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 | Annotate | Revision Log
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 #include "content/browser/download/download_interrupt_reasons_impl.h" 5 #include "content/browser/download/download_interrupt_reasons_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 26 matching lines...) Expand all
37 37
38 // The path or file name is too long. 38 // The path or file name is too long.
39 FILE_ERROR_TO_INTERRUPT_REASON(FILE_PATH_TOO_LONG, NAME_TOO_LONG) 39 FILE_ERROR_TO_INTERRUPT_REASON(FILE_PATH_TOO_LONG, NAME_TOO_LONG)
40 40
41 // Not enough room left on the disk. 41 // Not enough room left on the disk.
42 FILE_ERROR_TO_INTERRUPT_REASON(FILE_NO_SPACE, NO_SPACE) 42 FILE_ERROR_TO_INTERRUPT_REASON(FILE_NO_SPACE, NO_SPACE)
43 43
44 // The file has a virus. 44 // The file has a virus.
45 FILE_ERROR_TO_INTERRUPT_REASON(FILE_VIRUS_INFECTED, VIRUS_INFECTED) 45 FILE_ERROR_TO_INTERRUPT_REASON(FILE_VIRUS_INFECTED, VIRUS_INFECTED)
46 46
47 // The file was blocked by local policy.
48 FILE_ERROR_TO_INTERRUPT_REASON(BLOCKED_BY_CLIENT, BLOCKED)
49
47 // Network errors. 50 // Network errors.
48 51
49 // The network operation timed out. 52 // The network operation timed out.
50 NET_ERROR_TO_INTERRUPT_REASON(TIMED_OUT, TIMEOUT) 53 NET_ERROR_TO_INTERRUPT_REASON(TIMED_OUT, TIMEOUT)
51 54
52 // The network connection has been lost. 55 // The network connection has been lost.
53 NET_ERROR_TO_INTERRUPT_REASON(INTERNET_DISCONNECTED, DISCONNECTED) 56 NET_ERROR_TO_INTERRUPT_REASON(INTERNET_DISCONNECTED, DISCONNECTED)
54 57
55 // The server has gone down. 58 // The server has gone down.
56 NET_ERROR_TO_INTERRUPT_REASON(CONNECTION_FAILED, SERVER_DOWN) 59 NET_ERROR_TO_INTERRUPT_REASON(CONNECTION_FAILED, SERVER_DOWN)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 default: 106 default:
104 break; 107 break;
105 } 108 }
106 109
107 #undef INTERRUPT_REASON 110 #undef INTERRUPT_REASON
108 111
109 return "Unknown error"; 112 return "Unknown error";
110 } 113 }
111 114
112 } // namespace content 115 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_file_impl.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698