OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.components.navigation_interception; | 5 package org.chromium.components.navigation_interception; |
6 | 6 |
7 import org.chromium.base.CalledByNative; | 7 import org.chromium.base.CalledByNative; |
8 | 8 |
9 public interface InterceptNavigationDelegate { | 9 public interface InterceptNavigationDelegate { |
10 | 10 |
11 /** | 11 /** |
12 * This method is called for every top-level navigation within the associate
d WebContents. | 12 * This method is called for every top-level navigation within the associate
d WebContents. |
13 * The method allows the embedder to ignore navigations. This is used on And
roid to 'convert' | 13 * The method allows the embedder to ignore navigations. This is used on And
roid to 'convert' |
14 * certain navigations to Intents to 3rd party applications. | 14 * certain navigations to Intents to 3rd party applications. |
15 * | 15 * |
16 * @param navigationParams parameters describing the navigation. | 16 * @param navigationParams parameters describing the navigation. |
17 * @return true if the navigation should be ignored. | 17 * @return true if the navigation should be ignored. |
18 */ | 18 */ |
19 @CalledByNative | 19 @CalledByNative |
20 boolean shouldIgnoreNavigation(NavigationParams navigationParams); | 20 boolean shouldIgnoreNavigation(NavigationParams navigationParams); |
21 } | 21 } |
OLD | NEW |