mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
34 lines
997 B
C++
34 lines
997 B
C++
// Copyright © 2013 The CefSharp Project. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
#include "include/cef_browser.h"
|
|
|
|
using namespace CefSharp::Internals::JavascriptBinding;
|
|
using namespace System;
|
|
|
|
class SubprocessCefApp;
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace BrowserSubprocess
|
|
{
|
|
private ref class JavascriptProxy : IJavascriptProxy
|
|
{
|
|
SubprocessCefApp* _subprocessCefApp;
|
|
|
|
public:
|
|
// TODO: Don't hardwire the address like this, since it makes it impossible to run multiple apps that use
|
|
// CefSharp simultaneously...
|
|
literal String^ BaseAddress = "net.pipe://localhost";
|
|
literal String^ ServiceName = "JavaScriptProxy";
|
|
static String^ Address = BaseAddress + "/" + ServiceName;
|
|
|
|
JavascriptProxy();
|
|
virtual Object^ EvaluateScript(int frameId, String^ script, double timeout);
|
|
};
|
|
}
|
|
}
|