| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| module blink.mojom; |
| |
| // A return value when asked to commit a same-document navigation. |
| enum CommitResult { |
| // The commit proceeded as expected. |
| Ok, |
| |
| // The commit could not proceed. This happens when the frame cannot navigate. |
| Aborted, |
| |
| // The commit could not proceed, and the navigation should be restarted as a |
| // cross-document navigation. This happens when there is a race with a |
| // cross-document navigation commit, which ends up committing first. In that |
| // case, the same-document navigation cannot be committed as a same-document |
| // navigation, since the document changed. |
| RestartCrossDocument, |
| }; |