1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.components.navigation_interception;
7 import org.chromium.base.CalledByNative;
9 public interface InterceptNavigationDelegate {
12 * This method is called for every top-level navigation within the associated WebContents.
13 * The method allows the embedder to ignore navigations. This is used on Android to 'convert'
14 * certain navigations to Intents to 3rd party applications.
16 * @param navigationParams parameters describing the navigation.
17 * @return true if the navigation should be ignored.
20 boolean shouldIgnoreNavigation(NavigationParams navigationParams);