mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
fb1c70a44c
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
24 lines
742 B
C#
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;
|
|
}
|
|
}
|
|
}
|