mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
32 lines
931 B
C++
32 lines
931 B
C++
#include "stdafx.h"
|
|
#pragma once
|
|
|
|
using namespace System;
|
|
using namespace System::Collections::Generic;
|
|
|
|
namespace CefSharp
|
|
{
|
|
|
|
public interface class IRequest
|
|
{
|
|
property String^ Url { String^ get(); void set(String^ url); }
|
|
property String^ Method { String^ get(); }
|
|
IDictionary<String^, String^>^ GetHeaders();
|
|
void SetHeaders(IDictionary<String^, String^>^ headers);
|
|
};
|
|
|
|
ref class CefRequestWrapper : public IRequest
|
|
{
|
|
MCefRefPtr<CefRequest> _wrappedRequest;
|
|
internal:
|
|
CefRequestWrapper(CefRefPtr<CefRequest> cefRequest) : _wrappedRequest(cefRequest) {}
|
|
|
|
public:
|
|
virtual property String^ Url { String^ get(); void set(String^ url); }
|
|
virtual property String^ Method { String^ get(); }
|
|
virtual IDictionary<String^, String^>^ GetHeaders();
|
|
virtual void SetHeaders(IDictionary<String^, String^>^ headers);
|
|
|
|
};
|
|
|
|
} |