Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/NativePage.java

Issue 23020009: TabBase: Add ContentView/NativePage ownership (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase! Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/NativePage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/NativePage.java b/chrome/android/java/src/org/chromium/chrome/browser/NativePage.java
new file mode 100644
index 0000000000000000000000000000000000000000..9dce88d43ed7e83962f7aab6f6f35db9929b43c2
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/NativePage.java
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser;
+
+import org.chromium.content.browser.PageInfo;
+
+/**
+ * An interface for pages that will be shown in a tab using Android views instead of html.
+ */
+public interface NativePage extends PageInfo {
+
+ /**
+ * @return The hostname for this page, e.g. "newtab" or "bookmarks".
+ */
+ public String getHost();
+
+ /**
+ * Called after a page has been removed from the view hierarchy and will no longer be used.
+ */
+ public void destroy();
+
+ /**
+ * Updates the native page based on the given url.
+ */
+ public void updateForUrl(String url);
+}

Powered by Google App Engine
This is Rietveld 408576698