OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.content.browser; | 5 package org.chromium.content_public.browser; |
6 | 6 |
7 import android.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
8 | 8 |
9 /** | 9 /** |
10 * Represents one entry in the navigation history of a page. | 10 * Represents one entry in the navigation history of a page. |
11 */ | 11 */ |
12 public class NavigationEntry { | 12 public class NavigationEntry { |
13 | 13 |
14 private final int mIndex; | 14 private final int mIndex; |
15 private final String mUrl; | 15 private final String mUrl; |
16 private final String mOriginalUrl; | 16 private final String mOriginalUrl; |
17 private final String mVirtualUrl; | 17 private final String mVirtualUrl; |
18 private final String mTitle; | 18 private final String mTitle; |
19 private Bitmap mFavicon; | 19 private Bitmap mFavicon; |
20 | 20 |
21 /** | 21 /** |
22 * Default constructor. | 22 * Default constructor. |
23 */ | 23 */ |
24 protected NavigationEntry(int index, String url, String virtualUrl, String o
riginalUrl, | 24 public NavigationEntry(int index, String url, String virtualUrl, String orig
inalUrl, |
25 String title, Bitmap favicon) { | 25 String title, Bitmap favicon) { |
26 mIndex = index; | 26 mIndex = index; |
27 mUrl = url; | 27 mUrl = url; |
28 mVirtualUrl = virtualUrl; | 28 mVirtualUrl = virtualUrl; |
29 mOriginalUrl = originalUrl; | 29 mOriginalUrl = originalUrl; |
30 mTitle = title; | 30 mTitle = title; |
31 mFavicon = favicon; | 31 mFavicon = favicon; |
32 } | 32 } |
33 | 33 |
34 /** | 34 /** |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 return mFavicon; | 86 return mFavicon; |
87 } | 87 } |
88 | 88 |
89 /** | 89 /** |
90 * @param favicon The updated favicon to replace the existing one with. | 90 * @param favicon The updated favicon to replace the existing one with. |
91 */ | 91 */ |
92 public void updateFavicon(Bitmap favicon) { | 92 public void updateFavicon(Bitmap favicon) { |
93 mFavicon = favicon; | 93 mFavicon = favicon; |
94 } | 94 } |
95 } | 95 } |
OLD | NEW |