summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/can_commit_status.h
blob: 1e5334998fcfb706b7b5d285b12b89b944aaae93 (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. All rights reserved.
// 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_