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.
5 // Note that the embedder is welcome to persist these values across
6 // invocations of the browser, and possibly across browser versions.
7 // Thus individual errors may be deprecated and new errors added, but
8 // the values of particular errors should not be changed.
12 // Generic file operation failure.
14 INTERRUPT_REASON(FILE_FAILED
, 1)
16 // The file cannot be accessed due to security restrictions.
17 // The file cannot be accessed.
19 INTERRUPT_REASON(FILE_ACCESS_DENIED
, 2)
21 // There is not enough room on the drive.
23 INTERRUPT_REASON(FILE_NO_SPACE
, 3)
25 // The directory or file name is too long.
27 INTERRUPT_REASON(FILE_NAME_TOO_LONG
, 5)
29 // The file is too large for the file system to handle.
31 INTERRUPT_REASON(FILE_TOO_LARGE
, 6)
33 // The file contains a virus.
35 INTERRUPT_REASON(FILE_VIRUS_INFECTED
, 7)
37 // The file was in use.
38 // Too many files are opened at once.
39 // We have run out of memory.
40 // "Temporary Problem".
41 INTERRUPT_REASON(FILE_TRANSIENT_ERROR
, 10)
43 // The file was blocked due to local policy.
45 INTERRUPT_REASON(FILE_BLOCKED
, 11)
47 // An attempt to check the safety of the download failed due to unexpected
48 // reasons. See http://crbug.com/153212.
49 INTERRUPT_REASON(FILE_SECURITY_CHECK_FAILED
, 12)
51 // An attempt was made to seek past the end of a file in opening
52 // a file (as part of resuming a previously interrupted download).
53 INTERRUPT_REASON(FILE_TOO_SHORT
, 13)
57 // Generic network failure.
59 INTERRUPT_REASON(NETWORK_FAILED
, 20)
61 // The network operation timed out.
62 // "Operation Timed Out".
63 INTERRUPT_REASON(NETWORK_TIMEOUT
, 21)
65 // The network connection has been lost.
67 INTERRUPT_REASON(NETWORK_DISCONNECTED
, 22)
69 // The server has gone down.
71 INTERRUPT_REASON(NETWORK_SERVER_DOWN
, 23)
76 // The server indicates that the operation has failed (generic).
78 INTERRUPT_REASON(SERVER_FAILED
, 30)
80 // The server does not support range requests.
81 // Internal use only: must restart from the beginning.
82 INTERRUPT_REASON(SERVER_NO_RANGE
, 31)
84 // The download request does not meet the specified precondition.
85 // Internal use only: the file has changed on the server.
86 INTERRUPT_REASON(SERVER_PRECONDITION
, 32)
88 // The server does not have the requested data.
89 // "Unable to get file".
90 INTERRUPT_REASON(SERVER_BAD_CONTENT
, 33)
95 // The user canceled the download.
97 INTERRUPT_REASON(USER_CANCELED
, 40)
99 // The user shut down the browser.
100 // Internal use only: resume pending downloads if possible.
101 INTERRUPT_REASON(USER_SHUTDOWN
, 41)
106 // The browser crashed.
107 // Internal use only: resume pending downloads if possible.
108 INTERRUPT_REASON(CRASH
, 50)