blob: f2144675e1b59b90b4bee6458d4b634b7ca36843 [file] [log] [blame]
// 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.components.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 navigationParams parameters describing the navigation.
* @return true if the navigation should be ignored.
*/
@CalledByNative
boolean shouldIgnoreNavigation(NavigationParams navigationParams);
}