Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadItem.java

Issue 2670083002: [Download Home] Displaying offline page bundle per day (Closed)
Patch Set: Some fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698