OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.components.offline_items_collection; | 5 package org.chromium.components.offline_items_collection; |
6 | 6 |
7 import org.chromium.base.annotations.SuppressFBWarnings; | 7 import org.chromium.base.annotations.SuppressFBWarnings; |
8 | 8 |
9 /** | 9 /** |
10 * This class is the Java counterpart to the C++ OfflineItem | 10 * This class is the Java counterpart to the C++ OfflineItem |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // In Progress Metadata. | 39 // In Progress Metadata. |
40 @OfflineItemState | 40 @OfflineItemState |
41 public int state; | 41 public int state; |
42 public boolean isResumable; | 42 public boolean isResumable; |
43 public boolean allowMetered; | 43 public boolean allowMetered; |
44 public long receivedBytes; | 44 public long receivedBytes; |
45 public int percentCompleted; | 45 public int percentCompleted; |
46 public long timeRemainingMs; | 46 public long timeRemainingMs; |
47 | 47 |
48 OfflineItem() { | 48 public OfflineItem() { |
49 id = new ContentId(); | 49 id = new ContentId(); |
50 filter = OfflineItemFilter.FILTER_OTHER; | 50 filter = OfflineItemFilter.FILTER_OTHER; |
51 state = OfflineItemState.COMPLETE; | 51 state = OfflineItemState.COMPLETE; |
52 } | 52 } |
53 } | 53 } |
OLD | NEW |