OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.chrome.browser.offlinepages.downloads; | 5 package org.chromium.chrome.browser.offlinepages.downloads; |
6 | 6 |
7 import org.chromium.components.offlinepages.downloads.DownloadState; | 7 import org.chromium.components.offlinepages.downloads.DownloadState; |
8 | 8 |
9 /** Class representing offline page or save page request to downloads UI. */ | 9 /** Class representing offline page or save page request to downloads UI. */ |
10 public class OfflinePageDownloadItem { | 10 public class OfflinePageDownloadItem { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 /** @return Start time of the item, corresponding to when the offline page w
as saved. */ | 69 /** @return Start time of the item, corresponding to when the offline page w
as saved. */ |
70 public long getStartTimeMs() { | 70 public long getStartTimeMs() { |
71 return mStartTimeMs; | 71 return mStartTimeMs; |
72 } | 72 } |
73 | 73 |
74 /** @return Size of the offline archive in bytes. */ | 74 /** @return Size of the offline archive in bytes. */ |
75 public long getTotalBytes() { | 75 public long getTotalBytes() { |
76 return mTotalBytes; | 76 return mTotalBytes; |
77 } | 77 } |
| 78 |
| 79 /** @return Whether this page is to be shown in the suggested reading sectio
n. */ |
| 80 public boolean isSuggested() { |
| 81 return false; |
| 82 } |
78 } | 83 } |
OLD | NEW |