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. 4 5package org.chromium.components.navigation_interception; 6 7import org.chromium.base.CalledByNative; 8 9public interface InterceptNavigationDelegate { 10 11 /** 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. 15 * 16 * @param navigationParams parameters describing the navigation. 17 * @return true if the navigation should be ignored. 18 */ 19 @CalledByNative 20 boolean shouldIgnoreNavigation(NavigationParams navigationParams); 21} 22