Chromium Code Reviews| Index: chrome/browser/component/navigation_interception/java/src/org/chromium/chrome/browser/component/navigation_interception/InterceptNavigationDelegate.java |
| diff --git a/chrome/browser/component/navigation_interception/java/src/org/chromium/chrome/browser/component/navigation_interception/InterceptNavigationDelegate.java b/chrome/browser/component/navigation_interception/java/src/org/chromium/chrome/browser/component/navigation_interception/InterceptNavigationDelegate.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5eae733f42b287191944ac2a2cea945d76f42d7b |
| --- /dev/null |
| +++ b/chrome/browser/component/navigation_interception/java/src/org/chromium/chrome/browser/component/navigation_interception/InterceptNavigationDelegate.java |
| @@ -0,0 +1,21 @@ |
| +// Copyright (c) 2012 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.component.navigation_interception; |
| + |
| +import org.chromium.base.CalledByNative; |
| + |
| +public interface InterceptNavigationDelegate { |
| + /** |
| + * This method is called for every top-level navigation within the associated WebContents. |
| + * The method allows the embedder to ignore navigations. This is used on Android to 'convert' |
| + * certain navigations to Intents to 3rd party applications. |
| + * |
| + * @param url the target url of the navigation. |
| + * @param isContentInitiated true if the navigation was initiated by the user. |
|
joth
2012/10/03 22:01:32
nit: isContentInitiated -> isUserGesture
or is t
mkosiba (inactive)
2012/10/08 15:09:12
good find! thanks!
|
| + * @return true if the navigation should be ignored. |
| + */ |
| + @CalledByNative |
| + boolean shouldIgnoreNavigation(String url, boolean isContentInitiated); |
| +} |