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..b3cafd5be051d7c9f37867be532f3d04c251df05 |
--- /dev/null |
+++ b/chrome/browser/download/download_confirmation_reason.h |
@@ -0,0 +1,36 @@ |
+// 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_ |
+ |
+// Reason why DownloadTargetDeterminer requested additional confirmation for the |
+// target path via RequestConfirmation delegate method. |
+enum class DownloadConfirmationReason { |
+ NONE, |
+ |
+ // Unexpected error. |
+ UNEXPECTED, |
+ |
+ // "Save as" or "Save link as". |
+ SAVE_AS, |
+ |
+ // The user has set a preference requiring prompts for all downloads. |
+ PREFERENCE, |
+ |
+ // The target name was too long and couldn't be truncated. |
+ NAME_TOO_LONG, |
+ |
+ // There were unresolved conflicts with the target path. |
+ TARGET_CONFLICT, |
+ |
+ // The target path isn't writeable. Also may indicate that a previous attempt |
+ // to write to the path failed. |
+ TARGET_PATH_NOT_WRITEABLE, |
+ |
+ // The target path cannot accommodate a file of this size. |
+ TARGET_NO_SPACE, |
+}; |
+ |
+#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CONFIRMATION_REASON_H_ |