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

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

Issue 2453633006: [downloads] Move platform specific code out of DownloadTargetDeterminer. (Closed)
Patch Set: . Created 3 years, 9 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..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_
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/download/download_confirmation_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698