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;
7 import org.chromium.content.browser.NavigationEntry;
10 * Represent a navigation item and managed in XWalkNavigationHistory.
12 public final class XWalkNavigationItem implements Cloneable {
13 private NavigationEntry mEntry;
15 XWalkNavigationItem(NavigationEntry entry) {
19 XWalkNavigationItem(XWalkNavigationItem item) {
24 * Get the url of current navigation item.
25 * @return the string of the url.
27 public String getUrl() {
28 return mEntry.getUrl();
32 * Get the original url of current navigation item.
33 * @return the string of the original url.
35 public String getOriginalUrl() {
36 return mEntry.getOriginalUrl();
40 * Get the title of current navigation item.
41 * @return the string of the title.
43 public String getTitle() {
44 return mEntry.getTitle();
47 protected synchronized XWalkNavigationItem clone() {
48 return new XWalkNavigationItem(this);