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(); |
+} |