mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
15cb6d4754
Logs some basic information so we can see what type of ChromiumWebBrowser hasn't been closed within as part of the xUnit tests. * Meant for internal use and might be subject to change.
61 lines
1.3 KiB
C#
61 lines
1.3 KiB
C#
// Copyright © 2020 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.
|
|
|
|
using System;
|
|
using System.Threading;
|
|
|
|
namespace CefSharp.Internals
|
|
{
|
|
/// <inheritdoc/>
|
|
public sealed class NoOpBrowserRefCounter : IBrowserRefCounter
|
|
{
|
|
/// <inheritdoc/>
|
|
int IBrowserRefCounter.Count
|
|
{
|
|
get { return 0; }
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
void IBrowserRefCounter.EnableLogging()
|
|
{
|
|
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
string IBrowserRefCounter.GetLog()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
bool IBrowserRefCounter.Decrement(Type type)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
void IBrowserRefCounter.Increment(Type type)
|
|
{
|
|
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
void IBrowserRefCounter.WaitForBrowsersToClose(int timeoutInMiliseconds)
|
|
{
|
|
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
void IBrowserRefCounter.WaitForBrowsersToClose(int timeoutInMiliseconds, CancellationToken cancellationToken)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|