| 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..91a28f31fac02a3664bc18cbd1387e4fc5b9de8d
|
| --- /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 isUserGestrue true if the navigation was initiated by the user.
|
| + * @return true if the navigation should be ignored.
|
| + */
|
| + @CalledByNative
|
| + boolean shouldIgnoreNavigation(String url, boolean isUserGestrue);
|
| +}
|
|
|