Files
cefsharp/CefSharp.Core/Internals/CefRequestWrapper.h
T
amaitland b9ee476e8e Fix up some of the vc++ include mess that we had going
Cleanup using namespace statements as well
2015-09-29 16:26:06 +10:00

51 lines
1.4 KiB
C++

// Copyright © 2010-2015 The CefSharp Authors. 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 "Stdafx.h"
#include "include\cef_request.h"
#include "CefWrapper.h"
using namespace System::Collections::Specialized;
namespace CefSharp
{
namespace Internals
{
public ref class CefRequestWrapper : public IRequest, public CefWrapper
{
MCefRefPtr<CefRequest> _wrappedRequest;
IPostData^ _postData;
internal:
CefRequestWrapper(CefRefPtr<CefRequest> &cefRequest) :
_wrappedRequest(cefRequest)
{
}
!CefRequestWrapper()
{
_wrappedRequest = nullptr;
}
~CefRequestWrapper()
{
this->!CefRequestWrapper();
delete _postData;
_disposed = true;
}
public:
virtual property String^ Url { String^ get(); void set(String^ url); }
virtual property String^ Method { String^ get(); }
virtual property NameValueCollection^ Headers { NameValueCollection^ get(); void set(NameValueCollection^ url); }
virtual property TransitionType TransitionType { CefSharp::TransitionType get(); }
virtual property IPostData^ PostData { IPostData^ get(); }
};
}
}