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

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

Issue 1894703002: [Offline pages] Removing offline pages from Bookmarks UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Marking more methods as visible for testing Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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; 5 package org.chromium.chrome.browser.offlinepages;
6 6
7 import org.chromium.base.VisibleForTesting; 7 import org.chromium.base.VisibleForTesting;
8 8
9 /** 9 /**
10 * Simple object representing an offline page. 10 * Simple object representing an offline page.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return mClientId; 50 return mClientId;
51 } 51 }
52 52
53 /** @return Path to the offline copy of the page. */ 53 /** @return Path to the offline copy of the page. */
54 @VisibleForTesting 54 @VisibleForTesting
55 public String getOfflineUrl() { 55 public String getOfflineUrl() {
56 return mOfflineUrl; 56 return mOfflineUrl;
57 } 57 }
58 58
59 /** @return Size of the offline copy of the page. */ 59 /** @return Size of the offline copy of the page. */
60 @VisibleForTesting
60 public long getFileSize() { 61 public long getFileSize() {
61 return mFileSize; 62 return mFileSize;
62 } 63 }
63 64
64 /** @return Time in milliseconds the offline page was created. */ 65 /** @return Time in milliseconds the offline page was created. */
66 @VisibleForTesting
65 public long getCreationTimeMs() { 67 public long getCreationTimeMs() {
66 return mCreationTimeMs; 68 return mCreationTimeMs;
67 } 69 }
68 70
69 /** @return Number of times that the offline page has been accessed. */ 71 /** @return Number of times that the offline page has been accessed. */
70 @VisibleForTesting 72 @VisibleForTesting
71 public int getAccessCount() { 73 public int getAccessCount() {
72 return mAccessCount; 74 return mAccessCount;
73 } 75 }
74 76
75 /** @return Last time in milliseconds the offline page has been accessed. */ 77 /** @return Last time in milliseconds the offline page has been accessed. */
78 @VisibleForTesting
76 public long getLastAccessTimeMs() { 79 public long getLastAccessTimeMs() {
77 return mLastAccessTimeMs; 80 return mLastAccessTimeMs;
78 } 81 }
79 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698