diff --git a/CefSharp.Core/Internals/CefRequestWrapper.cpp b/CefSharp.Core/Internals/CefRequestWrapper.cpp index 51f4b3be7..46c1f3b8f 100644 --- a/CefSharp.Core/Internals/CefRequestWrapper.cpp +++ b/CefSharp.Core/Internals/CefRequestWrapper.cpp @@ -51,6 +51,13 @@ namespace CefSharp _wrappedRequest->SetMethod(StringUtils::ToNative(method)); } + UInt64 CefRequestWrapper::Identifier::get() + { + ThrowIfDisposed(); + + return _wrappedRequest->GetIdentifier(); + } + void CefRequestWrapper::SetReferrer(String^ referrerUrl, CefSharp::ReferrerPolicy policy) { ThrowIfDisposed(); @@ -139,6 +146,13 @@ namespace CefSharp return _postData; } + bool CefRequestWrapper::IsReadOnly::get() + { + ThrowIfDisposed(); + + return _wrappedRequest->IsReadOnly(); + } + void CefRequestWrapper::InitializePostData() { ThrowIfDisposed(); diff --git a/CefSharp.Core/Internals/CefRequestWrapper.h b/CefSharp.Core/Internals/CefRequestWrapper.h index ad9674bd6..8bb929a28 100644 --- a/CefSharp.Core/Internals/CefRequestWrapper.h +++ b/CefSharp.Core/Internals/CefRequestWrapper.h @@ -42,6 +42,7 @@ namespace CefSharp public: virtual property String^ Url { String^ get(); void set(String^ url); } virtual property String^ Method { String^ get(); void set(String^ method); } + virtual property UInt64 Identifier { UInt64 get(); } virtual void SetReferrer(String^ referrerUrl, CefSharp::ReferrerPolicy policy); virtual property String^ ReferrerUrl { String^ get(); } virtual property ResourceType ResourceType { CefSharp::ResourceType get(); } @@ -49,6 +50,7 @@ namespace CefSharp virtual property NameValueCollection^ Headers { NameValueCollection^ get(); void set(NameValueCollection^ url); } virtual property TransitionType TransitionType { CefSharp::TransitionType get(); } virtual property IPostData^ PostData { IPostData^ get(); } + virtual property bool IsReadOnly { bool get(); } virtual void InitializePostData(); operator CefRefPtr() diff --git a/CefSharp/IRequest.cs b/CefSharp/IRequest.cs index e71857343..b046e7ad2 100644 --- a/CefSharp/IRequest.cs +++ b/CefSharp/IRequest.cs @@ -9,11 +9,30 @@ namespace CefSharp { public interface IRequest : IDisposable { + /// + /// Get/Set the Url to the first party for cookies used in combination with CefURLRequest. + /// + /// Note: If we every implment CefURLRequest then this will need to be added + //string FirstPartyForCookies { get; set; } + + /// + /// Get the flags used in combination with CefURLRequest. See cef_urlrequest_flags_t for supported values. + /// + /// Note: If we every implment CefURLRequest then this will need to be added + //int Flags { get; set; } + /// /// Request Url /// string Url { get; set; } + /// + /// Returns the globally unique identifier for this request or 0 if not specified. + /// Can be used by implementations in the browser process to track a + /// single request across multiple callbacks. + /// + ulong Identifier { get; } + /// /// Request Method GET/POST etc /// @@ -66,6 +85,11 @@ namespace CefSharp /// bool IsDisposed { get; } + /// + /// Returns true if this object is read-only. + /// + bool IsReadOnly { get; } + /// /// Initialize a new instance of . /// Make sure to check if the is null