Files
cefsharp/CefSharp.Example/FlashResourceHandlerFactory.cs
T

24 lines
724 B
C#

// Copyright © 2010-2015 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.Example
{
public class FlashResourceHandlerFactory : IResourceHandlerFactory
{
bool IResourceHandlerFactory.HasHandlers
{
get { return true; }
}
IResourceHandler IResourceHandlerFactory.GetResourceHandler(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request)
{
if (request.Url.Contains("zeldaADPCM5bit.swf"))
{
return new FlashResourceHandler();
}
return null;
}
}
}