Nate Chapin | 470dbc6 | 2023-04-25 16:34:38 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CONTENT_BROWSER_RENDERER_HOST_LOADING_STATE_H_ |
| 6 | #define CONTENT_BROWSER_RENDERER_HOST_LOADING_STATE_H_ |
| 7 | |
| 8 | namespace content { |
| 9 | |
| 10 | // Used to specify the loading state of a frame, or the frame tree as a whole. |
| 11 | enum class LoadingState { |
| 12 | // Not currently loading. |
| 13 | NONE, |
| 14 | // Loading currently in progress, but no loading UI should be shown. Used |
| 15 | // for most same-document navigations. |
| 16 | LOADING_WITHOUT_UI, |
| 17 | // Loading currently in progress, and loading UI is recommended. This is |
| 18 | // used for cross-document navigations, as well as asynchronous same-document |
| 19 | // navigations from the web-exposed navigation API. Note that even if a |
| 20 | // FrameTreeNode's LoadingState is LOADING_UI_REQUESTED, the FrameTree may |
| 21 | // decide the tree-wide policy is LOADING_WITHOUT_UI if the root frame is not |
| 22 | // loading. Also, the embedder is under no obligation to showing any UI. |
| 23 | LOADING_UI_REQUESTED, |
| 24 | }; |
| 25 | |
| 26 | } // namespace content |
| 27 | |
| 28 | #endif // CONTENT_BROWSER_RENDERER_HOST_LOADING_STATE_H_ |