mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 17:46:04 +01:00
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
// Copyright (c) 2012 The Chromium Embedded Framework 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 CEF_LIBCEF_BROWSER_ORIGIN_WHITELIST_IMPL_H_
|
|
#define CEF_LIBCEF_BROWSER_ORIGIN_WHITELIST_IMPL_H_
|
|
|
|
#include <vector>
|
|
|
|
#include "third_party/abseil-cpp/absl/types/optional.h"
|
|
|
|
#include "cef/libcef/common/mojom/cef.mojom-forward.h"
|
|
|
|
namespace content {
|
|
class RenderProcessHost;
|
|
}
|
|
|
|
namespace url {
|
|
class Origin;
|
|
}
|
|
|
|
using CrossOriginWhiteList =
|
|
std::vector<cef::mojom::CrossOriginWhiteListEntryPtr>;
|
|
|
|
// Called to retrieve the current list of cross-origin white list entries. This
|
|
// method is thread safe.
|
|
void GetCrossOriginWhitelistEntries(
|
|
absl::optional<CrossOriginWhiteList>* entries);
|
|
|
|
// Returns true if |source| can access |target| based on the cross-origin white
|
|
// list settings.
|
|
bool HasCrossOriginWhitelistEntry(const url::Origin& source,
|
|
const url::Origin& target);
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_ORIGIN_WHITELIST_IMPL_H_
|