blob: 7b92014ea9c2011cf6ed00d92f950f1818aa7e19 [file] [log] [blame]
// 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.
#include "build/build_config.h"
// Result of RequestConfirmation delegate method for
// DownloadTargetDeterminerDelegate.
enum class DownloadConfirmationResult {
// The user confirmed the path. Only use this value if the user was explicitly
// shown the path or at least the filename being downloaded.
// The operation failed due to a reason other than a user cancellation.
// The user cancelled.
// User was not explicitly prompted, but continue with current path. The
// delegate should use this value instead of CONFIRMED if the user was not
// presented with some UI that explicitly called out the filename being
// downloaded.
#if defined(OS_ANDROID)
// After the user confirmed the file path on the dialog, we still need to
// check to make sure the path is valid. This is only used in the Android
// case because there is no equivalent DownloadLocationPicker to handle
// all of the error cases.