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

Side by Side Diff: content/browser/download/interrupt_reason_values.h

Issue 9639001: Move download interrupt reasons to content\public (the enum that's used by chrome). The rest keep i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 8 years, 9 months 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5
6 // File errors.
7
8 // Generic file operation failure.
9 // "File Error".
10 INTERRUPT_REASON(FILE_FAILED, 1)
11
12 // The file cannot be accessed due to security restrictions.
13 // The file cannot be accessed.
14 // "Access Denied".
15 INTERRUPT_REASON(FILE_ACCESS_DENIED, 2)
16
17 // There is not enough room on the drive.
18 // "Disk Full".
19 INTERRUPT_REASON(FILE_NO_SPACE, 3)
20
21 // The directory or file name is too long.
22 // "Path Too Long".
23 INTERRUPT_REASON(FILE_NAME_TOO_LONG, 5)
24
25 // The file is too large for the file system to handle.
26 // "File Too Large".
27 INTERRUPT_REASON(FILE_TOO_LARGE, 6)
28
29 // The file contains a virus.
30 // "Virus".
31 INTERRUPT_REASON(FILE_VIRUS_INFECTED, 7)
32
33 // The file was in use.
34 // Too many files are opened at once.
35 // We have run out of memory.
36 // "Temporary Problem".
37 INTERRUPT_REASON(FILE_TRANSIENT_ERROR, 10)
38
39
40 // Network errors.
41
42 // Generic network failure.
43 // "Network Error".
44 INTERRUPT_REASON(NETWORK_FAILED, 20)
45
46 // The network operation timed out.
47 // "Operation Timed Out".
48 INTERRUPT_REASON(NETWORK_TIMEOUT, 21)
49
50 // The network connection has been lost.
51 // "Connection Lost".
52 INTERRUPT_REASON(NETWORK_DISCONNECTED, 22)
53
54 // The server has gone down.
55 // "Server Down".
56 INTERRUPT_REASON(NETWORK_SERVER_DOWN, 23)
57
58
59 // Server responses.
60
61 // The server indicates that the operation has failed (generic).
62 // "Server Error".
63 INTERRUPT_REASON(SERVER_FAILED, 30)
64
65 // The server does not support range requests.
66 // Internal use only: must restart from the beginning.
67 INTERRUPT_REASON(SERVER_NO_RANGE, 31)
68
69 // The download request does not meet the specified precondition.
70 // Internal use only: the file has changed on the server.
71 INTERRUPT_REASON(SERVER_PRECONDITION, 32)
72
73 // The server does not have the requested data.
74 // "Unable to get file".
75 INTERRUPT_REASON(SERVER_BAD_CONTENT, 33)
76
77
78 // User input.
79
80 // The user canceled the download.
81 // "Canceled".
82 INTERRUPT_REASON(USER_CANCELED, 40)
83
84 // The user shut down the browser.
85 // Internal use only: resume pending downloads if possible.
86 INTERRUPT_REASON(USER_SHUTDOWN, 41)
87
88
89 // Crash.
90
91 // The browser crashed.
92 // Internal use only: resume pending downloads if possible.
93 INTERRUPT_REASON(CRASH, 50)
OLDNEW
« no previous file with comments | « content/browser/download/download_stats.cc ('k') | content/browser/download/interrupt_reasons.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698