Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / components / navigation_interception / android / java / src / org / chromium / components / navigation_interception / InterceptNavigationDelegate.java
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
5 package org.chromium.components.navigation_interception;
6
7 import org.chromium.base.CalledByNative;
8
9 public 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 }