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

Side by Side Diff: content/public/android/java/src/org/chromium/content_public/browser/NavigationEntry.java

Issue 406023002: Restructuring NavigationController functionalities from ContentViewCore to NavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch with findbugs_known_bugs.txt changes. Created 6 years, 3 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698