1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.weblayer;
6 
7 import androidx.annotation.IntDef;
8 
9 import java.lang.annotation.Retention;
10 import java.lang.annotation.RetentionPolicy;
11 
12 /**
13  * @hide
14  */
15 @IntDef({DownloadState.IN_PROGRESS, DownloadState.COMPLETE, DownloadState.PAUSED,
16         DownloadState.CANCELLED, DownloadState.FAILED})
17 @Retention(RetentionPolicy.SOURCE)
18 public @interface DownloadState {
19     int IN_PROGRESS = org.chromium.weblayer_private.interfaces.DownloadState.IN_PROGRESS;
20     int COMPLETE = org.chromium.weblayer_private.interfaces.DownloadState.COMPLETE;
21     int PAUSED = org.chromium.weblayer_private.interfaces.DownloadState.PAUSED;
22     int CANCELLED = org.chromium.weblayer_private.interfaces.DownloadState.CANCELLED;
23     int FAILED = org.chromium.weblayer_private.interfaces.DownloadState.FAILED;
24 }
25