blob: 31fff1569ac295392e941d506167077089e4a1c5 [file] [log] [blame]
// Copyright 2021 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_PERMISSIONS_PERMISSION_UTIL_H_
#define CONTENT_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_
class GURL;
namespace content {
class WebContents;
class PermissionUtil {
public:
// Returns the authoritative `embedding origin`, as a GURL, to be used for
// permission decisions in `web_contents`.
// TODO(crbug.com/698985): This method should only be used temporarily, and
// ultimately all call sites should be migrated to determine the authoritative
// security origin based on the requesting RenderFrameHost.
static GURL GetLastCommittedOriginAsURL(content::WebContents* web_contents);
};
} // namespace content
#endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_UTIL_H_