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

Unified Diff: chrome/browser/download/download_confirmation_reason.h

Issue 2453633006: [downloads] Move platform specific code out of DownloadTargetDeterminer. (Closed)
Patch Set: . Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_confirmation_reason.h
diff --git a/chrome/browser/download/download_confirmation_reason.h b/chrome/browser/download/download_confirmation_reason.h
new file mode 100644
index 0000000000000000000000000000000000000000..d0a2e508dd50b32a99931829ca7a42519c601e12
--- /dev/null
+++ b/chrome/browser/download/download_confirmation_reason.h
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CONFIRMATION_REASON_H_
+#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CONFIRMATION_REASON_H_
+
+enum class DownloadConfirmationReason {
+ NONE,
+ UNEXPECTED, // Unexpected error.
+ SAVE_AS, // "Save as" or "Save link as"
+ PREFERENCE, // The user has set a preference requiring prompts for all
+ // downloads.
+ NAME_TOO_LONG, // The target name was too long and couldn't be truncated.
+ TARGET_CONFLICT, // There were unresolved conflicts with the target path.
+ TARGET_NOT_WRITEABLE, // The target path isn't writeable. Also may indicate
+ // that a previous attempt to write to the path failed.
+ TARGET_NO_SPACE, // The target path cannot accommodate a file of this size.
+};
+
+#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CONFIRMATION_REASON_H_

Powered by Google App Engine
This is Rietveld 408576698