mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 08:34:55 +00:00
ce38ed81f0
* Core - Add IApp interface and DefaultApp implementation Move code from Cef.Initialize into CefSharpApp Working towards #2139 * CefSharpApp.h - Allow CefCustomScheme->SchemeHandlerFactory to be null If cefCustomScheme->SchemeHandlerFactory is null then we no longer attempt to call CefRegisterSchemeHandlerFactory You can then choose which RequestContext you wish to register your handler for, no longer forcing you to register in the global context Remove null checks in OnScheduleMessagePumpWork as we're throwing an exception if they're null when the CefApp is created
27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
// Copyright © 2018 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
|
|
{
|
|
/// <summary>
|
|
/// Implement this interface to provide handler implementations.
|
|
/// Methods will be called by the process and/or thread indicated.
|
|
/// </summary>
|
|
public interface IApp
|
|
{
|
|
/// <summary>
|
|
/// Return the handler for functionality specific to the browser process.
|
|
/// This method is called on multiple threads.
|
|
/// </summary>
|
|
IBrowserProcessHandler BrowserProcessHandler { get; }
|
|
|
|
/// <summary>
|
|
/// Provides an opportunity to register custom schemes. Do not keep a reference to the <paramref name="registrar"/> object.
|
|
/// This method is called on the main thread for each process and the registered schemes should be the same across all processes.
|
|
/// </summary>
|
|
/// <param name="registrar">scheme registra</param>
|
|
void OnRegisterCustomSchemes(ISchemeRegistrar registrar);
|
|
}
|
|
}
|