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

Unified Diff: chrome/android/java_staging/src/org/chromium/chrome/browser/hosted/HostedContentHandler.java

Issue 1157433002: Make it possible to load a new Url in hosted mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_staging/src/org/chromium/chrome/browser/hosted/HostedContentHandler.java
diff --git a/chrome/android/java_staging/src/org/chromium/chrome/browser/hosted/HostedContentHandler.java b/chrome/android/java_staging/src/org/chromium/chrome/browser/hosted/HostedContentHandler.java
new file mode 100644
index 0000000000000000000000000000000000000000..a2b6685e7fdacb941a1c62a7c9a06e722c3cf05a
--- /dev/null
+++ b/chrome/android/java_staging/src/org/chromium/chrome/browser/hosted/HostedContentHandler.java
@@ -0,0 +1,24 @@
+// Copyright 2015 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.hosted;
+
+import org.chromium.content_public.browser.LoadUrlParams;
+
+/**
+ * Interface to handle hosted mode calls whenever the session id matched.
+ * TODO(yusufo): Add a way to handle mayLaunchUrl as well.
Benoit L 2015/05/22 08:48:57 Why would we need to handle mayLaunchUrl here?
+ */
+public interface HostedContentHandler {
+ /**
+ * Load a new url inside the {@link HostedContentHandler}.
+ * @param params The params to use while loading the url.
+ */
+ void loadUrl(LoadUrlParams params);
+
+ /**
+ * @return The session id this {@link HostedContentHandler} is associated with.
+ */
+ long getSessionId();
+}

Powered by Google App Engine
This is Rietveld 408576698