Files
cefsharp/CefSharp/DefaultResourceRequestHandlerFactoryItem.cs
T
amaitland 73a156fdc5 Initial version 75 upgrade and NetworkService changes
Compiles, that's about it at this point, there are major CEF breaking changes, and lots to be addressed.

Browser Process (main process)
- Removed IResourceHandlerFactory as it no longer fits with the structure that CEF provides
- New IResourceRequestHandler interface added, not plumbed in yet
- CefSettings - Add RootCachePath and ApplicationClientIdForFileScanning

BrowserSubprocess (render process)
- SendProcessMessage was moved from CefBrowser to CefFrame
- OnBrowserCreated added extraInfo param

The BrowserSubprocess changes for this upgrade should be complete
2019-06-25 19:24:57 +10:00

38 lines
1.3 KiB
C#

// 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
{
public class DefaultResourceRequestHandlerFactoryItem
{
/// <summary>
/// Data
/// </summary>
public byte[] Data { get; private set; }
/// <summary>
/// Mime Type
/// </summary>
public string MimeType { get; private set; }
/// <summary>
/// Whether or not the handler should be used once (true) or until manually unregistered (false)
/// </summary>
public bool OneTimeUse { get; private set; }
/// <summary>
/// DefaultResourceHandlerFactoryItem constructor
/// </summary>
/// <param name="data">The data in byte[] format that will be used for the response</param>
/// <param name="mimeType">mime type</param>
/// <param name="oneTimeUse">Whether or not the handler should be used once (true) or until manually unregistered (false)</param>
public DefaultResourceRequestHandlerFactoryItem(byte[] data, string mimeType, bool oneTimeUse)
{
Data = data;
MimeType = mimeType;
OneTimeUse = oneTimeUse;
}
}
}