download_interrupt_reason_values.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
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". 10INTERRUPT_REASON(FILE_FAILED, 1) 11 12// The file cannot be accessed due to security restrictions. 13// The file cannot be accessed. 14// "Access Denied". 15INTERRUPT_REASON(FILE_ACCESS_DENIED, 2) 16 17// There is not enough room on the drive. 18// "Disk Full". 19INTERRUPT_REASON(FILE_NO_SPACE, 3) 20 21// The directory or file name is too long. 22// "Path Too Long". 23INTERRUPT_REASON(FILE_NAME_TOO_LONG, 5) 24 25// The file is too large for the file system to handle. 26// "File Too Large". 27INTERRUPT_REASON(FILE_TOO_LARGE, 6) 28 29// The file contains a virus. 30// "Virus". 31INTERRUPT_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". 37INTERRUPT_REASON(FILE_TRANSIENT_ERROR, 10) 38 39// The file was blocked due to local policy. 40// "Blocked" 41INTERRUPT_REASON(FILE_BLOCKED, 11) 42 43// An attempt to check the safety of the download failed due to unexpected 44// reasons. See http://crbug.com/153212. 45INTERRUPT_REASON(FILE_SECURITY_CHECK_FAILED, 12) 46 47// Network errors. 48 49// Generic network failure. 50// "Network Error". 51INTERRUPT_REASON(NETWORK_FAILED, 20) 52 53// The network operation timed out. 54// "Operation Timed Out". 55INTERRUPT_REASON(NETWORK_TIMEOUT, 21) 56 57// The network connection has been lost. 58// "Connection Lost". 59INTERRUPT_REASON(NETWORK_DISCONNECTED, 22) 60 61// The server has gone down. 62// "Server Down". 63INTERRUPT_REASON(NETWORK_SERVER_DOWN, 23) 64 65 66// Server responses. 67 68// The server indicates that the operation has failed (generic). 69// "Server Error". 70INTERRUPT_REASON(SERVER_FAILED, 30) 71 72// The server does not support range requests. 73// Internal use only: must restart from the beginning. 74INTERRUPT_REASON(SERVER_NO_RANGE, 31) 75 76// The download request does not meet the specified precondition. 77// Internal use only: the file has changed on the server. 78INTERRUPT_REASON(SERVER_PRECONDITION, 32) 79 80// The server does not have the requested data. 81// "Unable to get file". 82INTERRUPT_REASON(SERVER_BAD_CONTENT, 33) 83 84 85// User input. 86 87// The user canceled the download. 88// "Canceled". 89INTERRUPT_REASON(USER_CANCELED, 40) 90 91// The user shut down the browser. 92// Internal use only: resume pending downloads if possible. 93INTERRUPT_REASON(USER_SHUTDOWN, 41) 94 95 96// Crash. 97 98// The browser crashed. 99// Internal use only: resume pending downloads if possible. 100INTERRUPT_REASON(CRASH, 50) 101