mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
modified stringutils to accept ienumerable and cookiemanager to use it
This commit is contained in:
@@ -66,13 +66,7 @@ namespace CefSharp
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
vector<CefString> schemeVector;
|
||||
for each(String^ scheme in schemes)
|
||||
{
|
||||
schemeVector.push_back(StringUtils::ToNative(scheme));
|
||||
}
|
||||
|
||||
_cookieManager->SetSupportedSchemes(schemeVector, NULL);
|
||||
_cookieManager->SetSupportedSchemes(StringUtils::ToNative(schemes), NULL);
|
||||
}
|
||||
|
||||
bool CookieManager::VisitAllCookies(ICookieVisitor^ visitor)
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CefSharp
|
||||
}
|
||||
|
||||
[DebuggerStepThrough]
|
||||
std::vector<CefString> StringUtils::ToNative(List<String^>^ str)
|
||||
std::vector<CefString> StringUtils::ToNative(IEnumerable<String^>^ str)
|
||||
{
|
||||
if (str == nullptr)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CefSharp
|
||||
/// </summary>
|
||||
/// <param name="str">The List of strings that should be converted.</param>
|
||||
/// <returns>An unmanaged representation of the provided List of strings, or an empty List if the input is a nullptr.</returns>
|
||||
static std::vector<CefString> ToNative(List<String^>^ str);
|
||||
static std::vector<CefString> ToNative(IEnumerable<String^>^ str);
|
||||
|
||||
/// <summary>
|
||||
/// Assigns the provided cef_string_t object from the given .NET string.
|
||||
|
||||
Reference in New Issue
Block a user