No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WcfEnabledSubProcess.h 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright © 2016 The CefSharp Authors. All rights reserved.
  2. //
  3. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
  4. #pragma once
  5. #include "Stdafx.h"
  6. #include "SubProcess.h"
  7. #include "CefBrowserWrapper.h"
  8. using namespace System;
  9. using namespace CefSharp::RenderProcess;
  10. namespace CefSharp
  11. {
  12. namespace BrowserSubprocess
  13. {
  14. public ref class WcfEnabledSubProcess : SubProcess
  15. {
  16. private:
  17. Nullable<int> _parentBrowserId;
  18. /// <summary>
  19. /// The PID for the parent (browser) process
  20. /// </summary>
  21. int _parentProcessId;
  22. public:
  23. WcfEnabledSubProcess(int parentProcessId, IRenderProcessHandler^ handler, IEnumerable<String^>^ args) : SubProcess(handler,args)
  24. {
  25. _parentProcessId = parentProcessId;
  26. }
  27. void OnBrowserCreated(CefBrowserWrapper^ browser) override;
  28. void OnBrowserDestroyed(CefBrowserWrapper^ browser) override;
  29. };
  30. }
  31. }