Avi Drissman | 4e1b7bc3 | 2022-09-15 14:03:50 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Aaron Colwell | 1325f84 | 2019-10-07 20:37:58 | [diff] [blame] | 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_CAN_COMMIT_STATUS_H_ |
| 6 | #define CONTENT_BROWSER_CAN_COMMIT_STATUS_H_ |
| 7 | |
| 8 | namespace content { |
| 9 | // Status type used by functions that check whether it is ok to commit |
| 10 | // a particular combination of URL and Origin to a specific process. |
| 11 | // It indicates that a commit is allowed or signals whether the URL or |
| 12 | // origin prevented the commit. |
| 13 | enum class CanCommitStatus { |
| 14 | CAN_COMMIT_ORIGIN_AND_URL, |
| 15 | CANNOT_COMMIT_ORIGIN, |
| 16 | CANNOT_COMMIT_URL |
| 17 | }; |
| 18 | |
| 19 | } // namespace content |
| 20 | #endif // CONTENT_BROWSER_CAN_COMMIT_STATUS_H_ |