- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / android / java / src / org / chromium / chrome / browser / NativePage.java
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.
4
5 package org.chromium.chrome.browser;
6
7 import org.chromium.content.browser.PageInfo;
8
9 /**
10  * An interface for pages that will be shown in a tab using Android views instead of html.
11  */
12 public interface NativePage extends PageInfo {
13     /**
14      * @return The URL of the page.
15      */
16     String getUrl();
17
18     /**
19      * @return The hostname for this page, e.g. "newtab" or "bookmarks".
20      */
21     public String getHost();
22
23     /**
24      * Called after a page has been removed from the view hierarchy and will no longer be used.
25      */
26     public void destroy();
27
28     /**
29      * Updates the native page based on the given url.
30      */
31     public void updateForUrl(String url);
32 }