mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 08:03:22 +00:00
73a156fdc5
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
38 lines
1.3 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|