| 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 /** Class representing offline page or save page request to downloads UI. */ | 7 /** Class representing offline page or save page request to downloads UI. */ |
| 8 public class OfflinePageDownloadItem { | 8 public class OfflinePageDownloadItem { |
| 9 private final String mUrl; | 9 private final String mUrl; |
| 10 private final String mTitle; | 10 private final String mTitle; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 /** @return Start time of the item, corresponding to when the offline page w
as saved. */ | 49 /** @return Start time of the item, corresponding to when the offline page w
as saved. */ |
| 50 public long getStartTimeMs() { | 50 public long getStartTimeMs() { |
| 51 return mStartTimeMs; | 51 return mStartTimeMs; |
| 52 } | 52 } |
| 53 | 53 |
| 54 /** @return Size of the offline archive in bytes. */ | 54 /** @return Size of the offline archive in bytes. */ |
| 55 public long getTotalBytes() { | 55 public long getTotalBytes() { |
| 56 return mTotalBytes; | 56 return mTotalBytes; |
| 57 } | 57 } |
| 58 |
| 59 /** @return Whether this page is to be shown in the suggested reading sectio
n. */ |
| 60 public boolean isSuggested() { |
| 61 return true; |
| 62 } |
| 58 } | 63 } |
| OLD | NEW |