Files
cefsharp/CefSharp/RenderProcess/IRenderProcessHandler.cs
T
Alex Maitland 70de3a6d9c Add Initial IRenderProcessHandler.OnContextCreated/Released implementation (#2697)
* WinForms/WPF - Dispose of IFrame after calling LoadUrl

* BrowserProcess - Add initial implementation of IRenderProcessHandler.OnContextCreated/OnContextReleased

- IV8Context.Execute is the only method to be implemented so far (execute script without returning a result)
- Wrappers for CefFrame and CefBrowser have yet to be imported yet, still need to determine if they should be included individually or reference to CefSharp.Core added

* BrowserProcess - Add wrappers for Browser and Frame

Ultimately we should probably remove the CefSharp.BrowserSubprocess.Core project and move all the code into a folder/namespace within CefSharp.Core
This would allow us to share the a lot of existing code, major refactor required

* CefSharp.Common.props - Add CefSharpBrowserProcessCore32/64 properties

Make creating your own custom browser process easier

* BrowserProcess - Remove example and add comments about creating your own custom version
2019-03-20 20:33:10 +10:00

32 lines
1.4 KiB
C#

// Copyright © 2019 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.RenderProcess
{
/// <summary>
/// Class used to implement render process callbacks.
/// The methods of this class will be called on the render process main thread (TID_RENDERER) unless otherwise indicated.
/// </summary>
public interface IRenderProcessHandler
{
/// <summary>
/// Called immediately after the V8 context for a frame has been created.
/// V8 handles can only be accessed from the thread on which they are created.
/// </summary>
/// <param name="browser">the browser</param>
/// <param name="frame">the frame</param>
/// <param name="context">the V8Context</param>
void OnContextCreated(IBrowser browser, IFrame frame, IV8Context context);
/// <summary>
/// Called immediately before the V8 context for a frame is released.
/// No references to the context should be kept after this method is called.
/// </summary>
/// <param name="browser">the browser</param>
/// <param name="frame">the frame</param>
/// <param name="context">the V8Context</param>
void OnContextReleased(IBrowser browser, IFrame frame, IV8Context context);
}
}