Example - Move RequestContextHandler into CefSharp.Example

Was previously only in WPF project, move into the common CefSharp.Example
as there was nothing WPF specific out the class.
This commit is contained in:
amaitland
2020-09-24 09:45:19 +10:00
parent 23fd91b353
commit e149cabe07
3 changed files with 2 additions and 4 deletions
+1
View File
@@ -79,6 +79,7 @@
<Compile Include="Handlers\AudioHandler.cs" />
<Compile Include="Handlers\ExampleResourceRequestHandler.cs" />
<Compile Include="Handlers\ExtensionHandler.cs" />
<Compile Include="Handlers\RequestContextHandler.cs" />
<Compile Include="JavascriptBinding\AsyncBoundObject.cs" />
<Compile Include="JavascriptBinding\BoundObject.cs" />
<Compile Include="JavascriptBinding\CallbackResponseStruct.cs" />
@@ -2,12 +2,10 @@
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.Wpf.Example.Handlers
namespace CefSharp.Example.Handlers
{
public class RequestContextHandler : IRequestContextHandler
{
private readonly ICookieManager customCookieManager;
IResourceRequestHandler IRequestContextHandler.GetResourceRequestHandler(IBrowser browser, IFrame frame, IRequest request, bool isNavigation, bool isDownload, string requestInitiator, ref bool disableDefaultHandling)
{
return null;
@@ -116,7 +116,6 @@
<Compile Include="Handlers\DragHandler.cs" />
<Compile Include="Handlers\MenuHandler.cs" />
<Compile Include="Handlers\ExperimentalLifespanHandler.cs" />
<Compile Include="Handlers\RequestContextHandler.cs" />
<Compile Include="Handlers\WpfBrowserProcessHandler.cs" />
<Compile Include="Program.cs" />
<Compile Include="JavascriptCallbackMainWindow.xaml.cs">