Files
cefsharp/CefSharp.Wpf.Example/Handlers/RequestContextHandler.cs
T
amaitland fb1c70a44c Rename IPluginHandler to IRequestContextHandler
Add IRequestContextHandler.GetCookieManager() - Can now have unique CookieManager for each RequestContext
**Breaking Change**
CookieManager should be moved from the CefSharp.Internals namespace - will do that at some point later hopefully
2016-09-25 20:35:04 +10:00

24 lines
742 B
C#

// Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// 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
{
public class RequestContextHandler : IRequestContextHandler
{
bool IRequestContextHandler.OnBeforePluginLoad(string mimeType, string url, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy)
{
//pluginPolicy = PluginPolicy.Disable;
//return true;
return false;
}
ICookieManager IRequestContextHandler.GetCookieManager()
{
//Provide your own cookie manager
return null;
}
}
}