diff --git a/CefSharp/CefSharp.vcxproj b/CefSharp/CefSharp.vcxproj index 118c8c107..d4f00492e 100644 --- a/CefSharp/CefSharp.vcxproj +++ b/CefSharp/CefSharp.vcxproj @@ -162,6 +162,7 @@ + diff --git a/CefSharp/CefSharp.vcxproj.filters b/CefSharp/CefSharp.vcxproj.filters index d0a6479d9..d1a64aff7 100644 --- a/CefSharp/CefSharp.vcxproj.filters +++ b/CefSharp/CefSharp.vcxproj.filters @@ -187,5 +187,8 @@ Header Files + + Header Files + \ No newline at end of file diff --git a/CefSharp/ISchemeHandler.h b/CefSharp/ISchemeHandler.h new file mode 100644 index 000000000..40b1f2cb5 --- /dev/null +++ b/CefSharp/ISchemeHandler.h @@ -0,0 +1,18 @@ +#include "Stdafx.h" +#include "Request.h" + +namespace CefSharp +{ + ref class SchemeHandlerResponse; + public delegate void OnRequestCompletedHandler(); + + public interface class ISchemeHandler + { + /// + /// Processes a custom scheme-based request asynchronously. The implementing method should call the callback whenever the + /// request is completed. + /// + /// true if the request is handled, false otherwise. + bool ProcessRequestAsync(IRequest^ request, SchemeHandlerResponse^ response, OnRequestCompletedHandler^ callback); + }; +} diff --git a/CefSharp/SchemeHandlerWrapper.h b/CefSharp/SchemeHandlerWrapper.h index 2d43e749d..84e78c357 100644 --- a/CefSharp/SchemeHandlerWrapper.h +++ b/CefSharp/SchemeHandlerWrapper.h @@ -3,6 +3,7 @@ #include "include/cef_scheme.h" #include "Request.h" +#include "ISchemeHandler.h" using namespace System; using namespace System::IO; @@ -11,18 +12,6 @@ namespace CefSharp { ref class SchemeHandlerResponse; - public delegate void OnRequestCompletedHandler(); - - public interface class ISchemeHandler - { - /// - /// Processes a custom scheme-based request asynchronously. The implementing method should call the callback whenever the - /// request is completed. - /// - /// true if the request is handled, false otherwise. - bool ProcessRequestAsync(IRequest^ request, SchemeHandlerResponse^ response, OnRequestCompletedHandler^ callback); - }; - public interface class ISchemeHandlerFactory { ISchemeHandler^ Create();