// Copyright © 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.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; } } }