1 // Copyright 2019 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.weblayer_private.interfaces;
6 
7 /**
8  * Provides information about a navigation.
9  */
10 interface INavigation {
getState()11   int getState() = 0;
12 
getUri()13   String getUri() = 1;
14 
getRedirectChain()15   List<String> getRedirectChain() = 2;
16 
getHttpStatusCode()17   int getHttpStatusCode() = 3;
18 
isSameDocument()19   boolean isSameDocument() = 4;
20 
isErrorPage()21   boolean isErrorPage() = 5;
22 
getLoadError()23   int getLoadError() = 6;
24 
setRequestHeader(in String name, in String value)25   void setRequestHeader(in String name, in String value) = 7;
26 
27   void setUserAgentString(in String value) = 8;
28 
isDownload()29   boolean isDownload() = 9;
30 
wasStopCalled()31   boolean wasStopCalled() = 10;
32 
33   // @since 86
isPageInitiated()34   boolean isPageInitiated() = 11;
isReload()35   boolean isReload() = 12;
36 
37   // @since 88
disableNetworkErrorAutoReload()38   void disableNetworkErrorAutoReload() = 17;
39 }
40