0
Files
src/content/browser/can_commit_status.h
Aaron Colwell 1325f840da Move parts of RenderFrameHostImpl::CanCommitOriginAndUrl() into ChildProcessSecurityPolicyImpl.
This change moves some of the commit checks from RenderFrameHostImpl into
ChildProcessSecurityPolicyImpl so that it will be easier to implement opaque origin checks
in a follow-up CL. There should be no behavior changes introduce by this CL.

Bug: 991607
Change-Id: Icda9b08ba5e08e153d028d64309f35da8ab68dd4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1836596
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Commit-Queue: Aaron Colwell <acolwell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703441}
2019-10-07 20:37:58 +00:00

21 lines
698 B
C++

// 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_