1 // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.xwalk.core;
7 import android.graphics.Bitmap;
9 import org.chromium.content.browser.NavigationEntry;
11 // Wrap NavigationEntry in content as WebHistoryItem.
12 public class WebHistoryItem implements Cloneable {
13 private static int mNextId = 0;
15 private NavigationEntry mEntry;
16 public WebHistoryItem(NavigationEntry entry) {
21 public WebHistoryItem(WebHistoryItem item) {
31 public String getUrl() {
32 return mEntry.getUrl();
35 public String getOriginalUrl() {
36 return mEntry.getOriginalUrl();
39 public String getTitle() {
40 return mEntry.getTitle();
43 public Bitmap getFavicon() {
44 return mEntry.getFavicon();
47 protected synchronized WebHistoryItem clone() {
48 return new WebHistoryItem(this);