Skip to content

Commit e149cab

Browse files
committed
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.
1 parent 23fd91b commit e149cab

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

CefSharp.Example/CefSharp.Example.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<Compile Include="Handlers\AudioHandler.cs" />
8080
<Compile Include="Handlers\ExampleResourceRequestHandler.cs" />
8181
<Compile Include="Handlers\ExtensionHandler.cs" />
82+
<Compile Include="Handlers\RequestContextHandler.cs" />
8283
<Compile Include="JavascriptBinding\AsyncBoundObject.cs" />
8384
<Compile Include="JavascriptBinding\BoundObject.cs" />
8485
<Compile Include="JavascriptBinding\CallbackResponseStruct.cs" />

CefSharp.Wpf.Example/Handlers/RequestContextHandler.cs renamed to CefSharp.Example/Handlers/RequestContextHandler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
//
33
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
44

5-
namespace CefSharp.Wpf.Example.Handlers
5+
namespace CefSharp.Example.Handlers
66
{
77
public class RequestContextHandler : IRequestContextHandler
88
{
9-
private readonly ICookieManager customCookieManager;
10-
119
IResourceRequestHandler IRequestContextHandler.GetResourceRequestHandler(IBrowser browser, IFrame frame, IRequest request, bool isNavigation, bool isDownload, string requestInitiator, ref bool disableDefaultHandling)
1210
{
1311
return null;

CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
<Compile Include="Handlers\DragHandler.cs" />
117117
<Compile Include="Handlers\MenuHandler.cs" />
118118
<Compile Include="Handlers\ExperimentalLifespanHandler.cs" />
119-
<Compile Include="Handlers\RequestContextHandler.cs" />
120119
<Compile Include="Handlers\WpfBrowserProcessHandler.cs" />
121120
<Compile Include="Program.cs" />
122121
<Compile Include="JavascriptCallbackMainWindow.xaml.cs">

0 commit comments

Comments
 (0)