1 // Copyright 2020 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.chrome.browser.omnibox;
6 
7 import org.chromium.ui.base.PageTransition;
8 
9 /**
10  * Delegate interface that allows implementers to override the default URL loading behavior of the
11  * LocationBar.
12  */
13 public interface OverrideUrlLoadingDelegate {
14     /**
15      * Returns true if the delegate will handle loading for the given parameters.
16      */
willHandleLoadUrlWithPostData(String url, @PageTransition int transition, String postDataType, byte[] postData, boolean incognito)17     boolean willHandleLoadUrlWithPostData(String url, @PageTransition int transition,
18             String postDataType, byte[] postData, boolean incognito);
19 }
20