Skip to content

Commit

Permalink
Remove IRequestContext.ResolveHostCached
Browse files Browse the repository at this point in the history
Was removed from Chromium

Resolves #2747
  • Loading branch information
amaitland committed Apr 25, 2019
1 parent 5b191c0 commit 95ad9cd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
13 changes: 0 additions & 13 deletions CefSharp.Core/RequestContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,6 @@ namespace CefSharp
return callback->Task;
}

CefErrorCode RequestContext::ResolveHostCached(Uri^ origin, [Out] IList<String^>^ %resolvedIpAddresses)
{
ThrowIfDisposed();

std::vector<CefString> addresses;

auto errorCode = _requestContext->ResolveHostCached(StringUtils::ToNative(origin->AbsoluteUri), addresses);

resolvedIpAddresses = StringUtils::ToClr(addresses);

return (CefErrorCode)errorCode;
}

bool RequestContext::DidLoadExtension(String^ extensionId)
{
ThrowIfDisposed();
Expand Down
11 changes: 0 additions & 11 deletions CefSharp.Core/RequestContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,17 +302,6 @@ namespace CefSharp
/// <returns>A task that represents the Resoolve Host operation. The value of the TResult parameter contains ResolveCallbackResult.</returns>
virtual Task<ResolveCallbackResult>^ ResolveHostAsync(Uri^ origin);

/// <summary>
/// Attempts to resolve origin to a list of associated IP addresses using
/// cached data. This method must be called on the CEF IO thread. Use
/// Cef.IOThreadTaskFactory to execute on that thread.
/// </summary>
/// <param name="origin">host name to resolve</param>
/// <param name="resolvedIpAddresses">list of resolved IP
/// addresses or empty list if no cached data is available.</param>
/// <returns> Returns <see cref="CefErrorCode.None"/> on success</returns>
virtual CefErrorCode ResolveHostCached(Uri^ origin, [Out] IList<String^>^ %resolvedIpAddresses);

/// <summary>
/// Returns true if this context was used to load the extension identified by extensionId. Other contexts sharing the same storage will also have access to the extension (see HasExtension).
/// This method must be called on the CEF UI thread.
Expand Down
11 changes: 0 additions & 11 deletions CefSharp/IRequestContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,6 @@ public interface IRequestContext : IDisposable
/// <returns>A task that represents the Resoolve Host operation. The value of the TResult parameter contains ResolveCallbackResult.</returns>
Task<ResolveCallbackResult> ResolveHostAsync(Uri origin);

/// <summary>
/// Attempts to resolve origin to a list of associated IP addresses using
/// cached data. This method must be called on the CEF IO thread. Use
/// Cef.IOThreadTaskFactory to execute on that thread.
/// </summary>
/// <param name="origin">host name to resolve</param>
/// <param name="resolvedIpAddresses">list of resolved IP
/// addresses or empty list if no cached data is available.</param>
/// <returns> Returns <see cref="CefErrorCode.None"/> on success</returns>
CefErrorCode ResolveHostCached(Uri origin, out IList<string> resolvedIpAddresses);

/// <summary>
/// Returns true if this context was used to load the extension identified by extensionId. Other contexts sharing the same storage will also have access to the extension (see HasExtension).
/// This method must be called on the CEF UI thread.
Expand Down

0 comments on commit 95ad9cd

Please sign in to comment.