1 // Copyright (c) 2013-2014 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.internal;
7 import org.chromium.content.browser.NavigationEntry;
10 * This class represents a navigation item and is managed in XWalkNavigationHistoryInternal.
12 public class XWalkNavigationItemInternal implements Cloneable {
13 private NavigationEntry mEntry;
15 XWalkNavigationItemInternal(NavigationEntry entry) {
19 public XWalkNavigationItemInternal(XWalkNavigationItemInternal item) {
24 * Get the url of current navigation item.
25 * @return the string of the url.
28 public String getUrl() {
29 return mEntry.getUrl();
33 * Get the original url of current navigation item.
34 * @return the string of the original url.
37 public String getOriginalUrl() {
38 return mEntry.getOriginalUrl();
42 * Get the title of current navigation item.
43 * @return the string of the title.
46 public String getTitle() {
47 return mEntry.getTitle();
50 protected synchronized XWalkNavigationItemInternal clone() {
51 return new XWalkNavigationItemInternal(this);