summaryrefslogtreecommitdiff
path: root/chromium/content/browser/can_commit_status.h
blob: acda695c3e88b5a60af1d295e226267e8cb1ca89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_CAN_COMMIT_STATUS_H_
#define CONTENT_BROWSER_CAN_COMMIT_STATUS_H_

namespace content {
// Status type used by functions that check whether it is ok to commit
// a particular combination of URL and Origin to a specific process.
// It indicates that a commit is allowed or signals whether the URL or
// origin prevented the commit.
enum class CanCommitStatus {
  CAN_COMMIT_ORIGIN_AND_URL,
  CANNOT_COMMIT_ORIGIN,
  CANNOT_COMMIT_URL
};

}  // namespace content
#endif  // CONTENT_BROWSER_CAN_COMMIT_STATUS_H_