From 0b3000abb9046d9c7cd6539f2f1147c4071aafbf Mon Sep 17 00:00:00 2001
From: Sheen Tian <5869938+tishion@users.noreply.github.com>
Date: Mon, 14 Aug 2023 23:30:26 +0800
Subject: [PATCH] Add comment for cross origion whitelist methods
---
include/QCefContext.h | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/include/QCefContext.h b/include/QCefContext.h
index 9d84b218..835287a6 100644
--- a/include/QCefContext.h
+++ b/include/QCefContext.h
@@ -88,12 +88,13 @@ class QCEFVIEW_EXPORT QCefContext : public QObject
bool deleteAllCookies();
///
- /// Adds an entry to the cross-origin access whitelist.
+ /// Adds an entry to the cross-origin access whitelist. For details please refer to:
+ /// https://github.com/chromiumembedded/cef/blob/605c2bac86415dcec1e2902cdc46dc11c1ad026a/include/cef_origin_whitelist.h#L81C23-L81C23
///
- ///
- ///
- ///
- ///
+ /// The source origin
+ /// The target schema
+ /// The target domain
+ /// Whether to allow subdomain or not
/// True on success; otherwise false
bool addCrossOriginWhitelistEntry(const QString& sourceOrigin,
const QString& targetSchema,
@@ -101,12 +102,12 @@ class QCEFVIEW_EXPORT QCefContext : public QObject
bool allowTargetSubdomains);
///
- /// Removes an entry from the cross-origin access whitelist.
+ /// Removes an entry from the cross-origin access whitelist. For details please refer to:
+ /// https://github.com/chromiumembedded/cef/blob/605c2bac86415dcec1e2902cdc46dc11c1ad026a/include/cef_origin_whitelist.h#L91C12-L91C12
///
- ///
- ///
- ///
- ///
+ /// The source origin
+ /// The target schema
+ /// The target domain
/// True on success; otherwise false
bool removeCrossOriginWhitelistEntry(const QString& sourceOrigin,
const QString& targetSchema,