// Copyright © 2017 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 { /// /// A resource request handler factory item. /// public class ResourceRequestHandlerFactoryItem { /// /// Data /// public byte[] Data { get; private set; } /// /// Mime Type /// public string MimeType { get; private set; } /// /// Whether or not the handler should be used once (true) or until manually unregistered (false) /// public bool OneTimeUse { get; private set; } /// /// DefaultResourceHandlerFactoryItem constructor /// /// The data in byte[] format that will be used for the response /// mime type /// Whether or not the handler should be used once (true) or until manually unregistered (false) public ResourceRequestHandlerFactoryItem(byte[] data, string mimeType, bool oneTimeUse) { Data = data; MimeType = mimeType; OneTimeUse = oneTimeUse; } } }