CefEndTracingCallback.cs 1.0 KB

1234567891011121314151617181920212223242526272829
  1. namespace Xilium.CefGlue
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.Runtime.InteropServices;
  7. using Xilium.CefGlue.Interop;
  8. /// <summary>
  9. /// Implement this interface to receive notification when tracing has completed.
  10. /// The methods of this class will be called on the browser process UI thread.
  11. /// </summary>
  12. public abstract unsafe partial class CefEndTracingCallback
  13. {
  14. private void on_end_tracing_complete(cef_end_tracing_callback_t* self, cef_string_t* tracing_file)
  15. {
  16. CheckSelf(self);
  17. OnEndTracingComplete(cef_string_t.ToString(tracing_file));
  18. }
  19. /// <summary>
  20. /// Called after all processes have sent their trace data. |tracing_file| is
  21. /// the path at which tracing data was written. The client is responsible for
  22. /// deleting |tracing_file|.
  23. /// </summary>
  24. protected abstract void OnEndTracingComplete(string tracingFile);
  25. }
  26. }