2018-09-10 02:41:13 +02:00
|
|
|
// Copyright © 2016 The CefSharp Authors. All rights reserved.
|
2016-05-16 18:52:35 +10:00
|
|
|
//
|
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Stdafx.h"
|
2016-05-16 19:56:15 +10:00
|
|
|
#include "SubProcess.h"
|
2016-05-16 18:52:35 +10:00
|
|
|
#include "CefBrowserWrapper.h"
|
|
|
|
|
|
|
|
|
|
using namespace System;
|
2019-03-20 20:33:10 +10:00
|
|
|
using namespace CefSharp::RenderProcess;
|
2016-05-16 18:52:35 +10:00
|
|
|
|
|
|
|
|
namespace CefSharp
|
|
|
|
|
{
|
2016-05-31 08:27:58 +10:00
|
|
|
namespace BrowserSubprocess
|
|
|
|
|
{
|
|
|
|
|
public ref class WcfEnabledSubProcess : SubProcess
|
|
|
|
|
{
|
|
|
|
|
private:
|
2018-04-30 12:45:15 +10:00
|
|
|
Nullable<int> _parentBrowserId;
|
2016-05-31 08:27:58 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The PID for the parent (browser) process
|
|
|
|
|
/// </summary>
|
2018-04-30 12:45:15 +10:00
|
|
|
int _parentProcessId;
|
2016-05-31 08:27:58 +10:00
|
|
|
|
|
|
|
|
public:
|
2019-03-20 20:33:10 +10:00
|
|
|
WcfEnabledSubProcess(int parentProcessId, IRenderProcessHandler^ handler, IEnumerable<String^>^ args) : SubProcess(handler,args)
|
2016-05-31 08:27:58 +10:00
|
|
|
{
|
2018-04-30 12:45:15 +10:00
|
|
|
_parentProcessId = parentProcessId;
|
2016-05-31 08:27:58 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void OnBrowserCreated(CefBrowserWrapper^ browser) override;
|
|
|
|
|
void OnBrowserDestroyed(CefBrowserWrapper^ browser) override;
|
|
|
|
|
};
|
|
|
|
|
}
|
2019-03-20 20:33:10 +10:00
|
|
|
}
|