Skip to content

Commit 0b3000a

Browse files
authored
Add comment for cross origion whitelist methods
1 parent 982eb4e commit 0b3000a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

include/QCefContext.h

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,26 @@ class QCEFVIEW_EXPORT QCefContext : public QObject
8888
bool deleteAllCookies();
8989

9090
/// <summary>
91-
/// Adds an entry to the cross-origin access whitelist.
91+
/// Adds an entry to the cross-origin access whitelist. For details please refer to:
92+
/// https://github.com/chromiumembedded/cef/blob/605c2bac86415dcec1e2902cdc46dc11c1ad026a/include/cef_origin_whitelist.h#L81C23-L81C23
9293
/// </summary>
93-
/// <param name="sourceOrigin"></param>
94-
/// <param name="targetSchema"></param>
95-
/// <param name="targetDomain"></param>
96-
/// <param name="allowTargetSubdomains"></param>
94+
/// <param name="sourceOrigin">The source origin</param>
95+
/// <param name="targetSchema">The target schema</param>
96+
/// <param name="targetDomain">The target domain</param>
97+
/// <param name="allowTargetSubdomains">Whether to allow subdomain or not</param>
9798
/// <returns>True on success; otherwise false</returns>
9899
bool addCrossOriginWhitelistEntry(const QString& sourceOrigin,
99100
const QString& targetSchema,
100101
const QString& targetDomain,
101102
bool allowTargetSubdomains);
102103

103104
/// <summary>
104-
/// Removes an entry from the cross-origin access whitelist.
105+
/// Removes an entry from the cross-origin access whitelist. For details please refer to:
106+
/// https://github.com/chromiumembedded/cef/blob/605c2bac86415dcec1e2902cdc46dc11c1ad026a/include/cef_origin_whitelist.h#L91C12-L91C12
105107
/// </summary>
106-
/// <param name="sourceOrigin"></param>
107-
/// <param name="targetSchema"></param>
108-
/// <param name="targetDomain"></param>
109-
/// <param name="allowTargetSubdomains"></param>
108+
/// <param name="sourceOrigin">The source origin</param>
109+
/// <param name="targetSchema">The target schema</param>
110+
/// <param name="targetDomain">The target domain</param>
110111
/// <returns>True on success; otherwise false</returns>
111112
bool removeCrossOriginWhitelistEntry(const QString& sourceOrigin,
112113
const QString& targetSchema,

0 commit comments

Comments
 (0)