diff --git a/CefSharp.Core/Internals/ClientAdapter.cpp b/CefSharp.Core/Internals/ClientAdapter.cpp
index 02f9d3ba1..b5a2b9a0b 100644
--- a/CefSharp.Core/Internals/ClientAdapter.cpp
+++ b/CefSharp.Core/Internals/ClientAdapter.cpp
@@ -254,8 +254,8 @@ namespace CefSharp
return false;
}
- CefRequestWrapper^ requestWrapper = gcnew CefRequestWrapper(request);
- RequestResponse^ response = gcnew RequestResponse();
+ auto requestWrapper = gcnew CefRequestWrapper(request);
+ auto response = gcnew Response();
bool ret = handler->OnBeforeResourceLoad(_browserControl, requestWrapper, response);
diff --git a/CefSharp.Core/Internals/RequestResponse.cpp b/CefSharp.Core/Internals/RequestResponse.cpp
index 9e1a8b97c..50af436b7 100644
--- a/CefSharp.Core/Internals/RequestResponse.cpp
+++ b/CefSharp.Core/Internals/RequestResponse.cpp
@@ -9,23 +9,23 @@ namespace CefSharp
{
namespace Internals
{
- void RequestResponse::Cancel()
+ void Response::Cancel()
{
_action = ResponseAction::Cancel;
}
- void RequestResponse::Redirect(String^ url)
+ void Response::Redirect(String^ url)
{
_redirectUrl = url;
_action = ResponseAction::Redirect;
}
- void RequestResponse::RespondWith(Stream^ stream, String^ mimeType)
+ void Response::RespondWith(Stream^ stream, String^ mimeType)
{
RespondWith(stream, mimeType, "OK", 200, nullptr);
}
- void RequestResponse::RespondWith(Stream^ stream, String^ mimeType, String^ statusText, int statusCode, NameValueCollection^ responseHeaders)
+ void Response::RespondWith(Stream^ stream, String^ mimeType, String^ statusText, int statusCode, NameValueCollection^ responseHeaders)
{
if (String::IsNullOrEmpty(mimeType))
{
diff --git a/CefSharp.Core/Internals/RequestResponse.h b/CefSharp.Core/Internals/RequestResponse.h
index 8fcbbe86b..d966991e1 100644
--- a/CefSharp.Core/Internals/RequestResponse.h
+++ b/CefSharp.Core/Internals/RequestResponse.h
@@ -22,7 +22,7 @@ namespace CefSharp
Respond
};
- private ref class RequestResponse : IRequestResponse
+ private ref class Response : IResponse
{
IRequest^ _request;
Stream^ _responseStream;
@@ -34,7 +34,7 @@ namespace CefSharp
NameValueCollection^ _responseHeaders;
internal:
- RequestResponse() : _action(ResponseAction::Continue)
+ Response() : _action(ResponseAction::Continue)
{
}
diff --git a/CefSharp.Example/RequestHandler.cs b/CefSharp.Example/RequestHandler.cs
index 538a42832..dc29bfb32 100644
--- a/CefSharp.Example/RequestHandler.cs
+++ b/CefSharp.Example/RequestHandler.cs
@@ -21,7 +21,7 @@ namespace CefSharp.Example
// TODO: Add your own code here for handling scenarios where a plugin crashed, for one reason or another.
}
- bool IRequestHandler.OnBeforeResourceLoad(IWebBrowser browser, IRequest request, IRequestResponse response)
+ bool IRequestHandler.OnBeforeResourceLoad(IWebBrowser browser, IRequest request, IResponse response)
{
if (request.Url.StartsWith(ResourceUrl.ToString()))
{
diff --git a/CefSharp/CefSharp.csproj b/CefSharp/CefSharp.csproj
index ee5c7b180..1f37ef588 100644
--- a/CefSharp/CefSharp.csproj
+++ b/CefSharp/CefSharp.csproj
@@ -130,7 +130,7 @@
-
+
diff --git a/CefSharp/IRequestHandler.cs b/CefSharp/IRequestHandler.cs
index fc46d84f8..615b375b0 100644
--- a/CefSharp/IRequestHandler.cs
+++ b/CefSharp/IRequestHandler.cs
@@ -32,7 +32,7 @@ namespace CefSharp
/// the request object - can be modified in this callback.
/// the request object - can be modified in this callback.
/// To cancel loading of the resource return true or false o allow the resource to load normally.
- bool OnBeforeResourceLoad(IWebBrowser browser, IRequest request, IRequestResponse response);
+ bool OnBeforeResourceLoad(IWebBrowser browser, IRequest request, IResponse response);
// TODO: Investigate how we can support in CEF3.
//void OnResourceResponse(IWebBrowser browser, string url, int status, string statusText, string mimeType, WebHeaderCollection headers);
diff --git a/CefSharp/IRequestResponse.cs b/CefSharp/IResponse.cs
similarity index 92%
rename from CefSharp/IRequestResponse.cs
rename to CefSharp/IResponse.cs
index 90ac23e97..beeb31e77 100644
--- a/CefSharp/IRequestResponse.cs
+++ b/CefSharp/IResponse.cs
@@ -6,7 +6,7 @@ using System.IO;
namespace CefSharp
{
- public interface IRequestResponse
+ public interface IResponse
{
/// cancel the request, return nothing
void Cancel();