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

Side by Side Diff: content/public/browser/download_interrupt_reason_values.h

Issue 114193009: [Download] Return DownloadInterruptReason from OnStartedCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 // Note that the embedder is welcome to persist these values across 5 // Note that the embedder is welcome to persist these values across
6 // invocations of the browser, and possibly across browser versions. 6 // invocations of the browser, and possibly across browser versions.
7 // Thus individual errors may be deprecated and new errors added, but 7 // Thus individual errors may be deprecated and new errors added, but
8 // the values of particular errors should not be changed. 8 // the values of particular errors should not be changed.
9 9
10 // File errors. 10 // File errors.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 INTERRUPT_REASON(NETWORK_TIMEOUT, 21) 63 INTERRUPT_REASON(NETWORK_TIMEOUT, 21)
64 64
65 // The network connection has been lost. 65 // The network connection has been lost.
66 // "Connection Lost". 66 // "Connection Lost".
67 INTERRUPT_REASON(NETWORK_DISCONNECTED, 22) 67 INTERRUPT_REASON(NETWORK_DISCONNECTED, 22)
68 68
69 // The server has gone down. 69 // The server has gone down.
70 // "Server Down". 70 // "Server Down".
71 INTERRUPT_REASON(NETWORK_SERVER_DOWN, 23) 71 INTERRUPT_REASON(NETWORK_SERVER_DOWN, 23)
72 72
73 // The network request was invalid. This may be due to the original URL or a
74 // redirected URL:
75 // - Having an unsupported scheme.
76 // - Being an invalid URL.
77 // - Being disallowed by policy.
78 INTERRUPT_REASON(NETWORK_INVALID_REQUEST, 24)
73 79
74 // Server responses. 80 // Server responses.
75 81
76 // The server indicates that the operation has failed (generic). 82 // The server indicates that the operation has failed (generic).
77 // "Server Error". 83 // "Server Error".
78 INTERRUPT_REASON(SERVER_FAILED, 30) 84 INTERRUPT_REASON(SERVER_FAILED, 30)
79 85
80 // The server does not support range requests. 86 // The server does not support range requests.
81 // Internal use only: must restart from the beginning. 87 // Internal use only: must restart from the beginning.
82 INTERRUPT_REASON(SERVER_NO_RANGE, 31) 88 INTERRUPT_REASON(SERVER_NO_RANGE, 31)
(...skipping 16 matching lines...) Expand all
99 // The user shut down the browser. 105 // The user shut down the browser.
100 // Internal use only: resume pending downloads if possible. 106 // Internal use only: resume pending downloads if possible.
101 INTERRUPT_REASON(USER_SHUTDOWN, 41) 107 INTERRUPT_REASON(USER_SHUTDOWN, 41)
102 108
103 109
104 // Crash. 110 // Crash.
105 111
106 // The browser crashed. 112 // The browser crashed.
107 // Internal use only: resume pending downloads if possible. 113 // Internal use only: resume pending downloads if possible.
108 INTERRUPT_REASON(CRASH, 50) 114 INTERRUPT_REASON(CRASH, 50)
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/public/browser/download_interrupt_reasons.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698