1 // Copyright 2013 The Chromium Authors. 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.chromium.chrome.browser;
7 import org.chromium.content.browser.PageInfo;
10 * An interface for pages that will be shown in a tab using Android views instead of html.
12 public interface NativePage extends PageInfo {
14 * @return The URL of the page.
19 * @return The hostname for this page, e.g. "newtab" or "bookmarks".
21 public String getHost();
24 * Called after a page has been removed from the view hierarchy and will no longer be used.
26 public void destroy();
29 * Updates the native page based on the given url.
31 public void updateForUrl(String url);