Update WinRT to new version 2.0.250303.1

PiperOrigin-RevId: 781075193
This commit is contained in:
Guogang Li
2025-07-09 08:58:00 -07:00
committed by Copybara-Service
parent 5e558cffc4
commit 8f14bd10fc
1395 changed files with 498490 additions and 61973 deletions
@@ -1,4 +1,4 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
#pragma once
#ifndef WINRT_Windows_Web_Http_0_H
@@ -6,14 +6,14 @@
WINRT_EXPORT namespace winrt::Windows::Foundation
{
struct HResult;
template <typename T> struct __declspec(empty_bases) IReference;
template <typename T> struct WINRT_IMPL_EMPTY_BASES IReference;
struct Uri;
}
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
{
template <typename T> struct __declspec(empty_bases) IIterable;
template <typename K, typename V> struct __declspec(empty_bases) IKeyValuePair;
template <typename T> struct __declspec(empty_bases) IVectorView;
template <typename T> struct WINRT_IMPL_EMPTY_BASES IIterable;
template <typename K, typename V> struct WINRT_IMPL_EMPTY_BASES IKeyValuePair;
template <typename T> struct WINRT_IMPL_EMPTY_BASES IVectorView;
}
WINRT_EXPORT namespace winrt::Windows::Networking::Sockets
{
@@ -137,6 +137,7 @@ WINRT_EXPORT namespace winrt::Windows::Web::Http
struct IHttpBufferContentFactory;
struct IHttpClient;
struct IHttpClient2;
struct IHttpClient3;
struct IHttpClientFactory;
struct IHttpContent;
struct IHttpCookie;
@@ -154,6 +155,7 @@ WINRT_EXPORT namespace winrt::Windows::Web::Http
struct IHttpMultipartFormDataContent;
struct IHttpMultipartFormDataContentFactory;
struct IHttpRequestMessage;
struct IHttpRequestMessage2;
struct IHttpRequestMessageFactory;
struct IHttpRequestResult;
struct IHttpResponseMessage;
@@ -186,6 +188,7 @@ namespace winrt::impl
template <> struct category<winrt::Windows::Web::Http::IHttpBufferContentFactory>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpClient>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpClient2>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpClient3>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpClientFactory>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpContent>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpCookie>{ using type = interface_category; };
@@ -203,6 +206,7 @@ namespace winrt::impl
template <> struct category<winrt::Windows::Web::Http::IHttpMultipartFormDataContent>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpMultipartFormDataContentFactory>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpRequestMessage>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpRequestMessage2>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpRequestMessageFactory>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpRequestResult>{ using type = interface_category; };
template <> struct category<winrt::Windows::Web::Http::IHttpResponseMessage>{ using type = interface_category; };
@@ -261,6 +265,7 @@ namespace winrt::impl
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpBufferContentFactory> = L"Windows.Web.Http.IHttpBufferContentFactory";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpClient> = L"Windows.Web.Http.IHttpClient";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpClient2> = L"Windows.Web.Http.IHttpClient2";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpClient3> = L"Windows.Web.Http.IHttpClient3";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpClientFactory> = L"Windows.Web.Http.IHttpClientFactory";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpContent> = L"Windows.Web.Http.IHttpContent";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpCookie> = L"Windows.Web.Http.IHttpCookie";
@@ -278,6 +283,7 @@ namespace winrt::impl
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpMultipartFormDataContent> = L"Windows.Web.Http.IHttpMultipartFormDataContent";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpMultipartFormDataContentFactory> = L"Windows.Web.Http.IHttpMultipartFormDataContentFactory";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpRequestMessage> = L"Windows.Web.Http.IHttpRequestMessage";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpRequestMessage2> = L"Windows.Web.Http.IHttpRequestMessage2";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpRequestMessageFactory> = L"Windows.Web.Http.IHttpRequestMessageFactory";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpRequestResult> = L"Windows.Web.Http.IHttpRequestResult";
template <> inline constexpr auto& name_v<winrt::Windows::Web::Http::IHttpResponseMessage> = L"Windows.Web.Http.IHttpResponseMessage";
@@ -288,6 +294,7 @@ namespace winrt::impl
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpBufferContentFactory>{ 0xBC20C193,0xC41F,0x4FF7,{ 0x91,0x23,0x64,0x35,0x73,0x6E,0xAD,0xC2 } }; // BC20C193-C41F-4FF7-9123-6435736EADC2
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpClient>{ 0x7FDA1151,0x3574,0x4880,{ 0xA8,0xBA,0xE6,0xB1,0xE0,0x06,0x1F,0x3D } }; // 7FDA1151-3574-4880-A8BA-E6B1E0061F3D
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpClient2>{ 0xCDD83348,0xE8B7,0x4CEC,{ 0xB1,0xB0,0xDC,0x45,0x5F,0xE7,0x2C,0x92 } }; // CDD83348-E8B7-4CEC-B1B0-DC455FE72C92
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpClient3>{ 0x1172FD01,0x9899,0x4194,{ 0x96,0x3F,0x8F,0x9D,0x72,0xA7,0xEC,0x15 } }; // 1172FD01-9899-4194-963F-8F9D72A7EC15
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpClientFactory>{ 0xC30C4ECA,0xE3FA,0x4F99,{ 0xAF,0xB4,0x63,0xCC,0x65,0x00,0x94,0x62 } }; // C30C4ECA-E3FA-4F99-AFB4-63CC65009462
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpContent>{ 0x6B14A441,0xFBA7,0x4BD2,{ 0xAF,0x0A,0x83,0x9D,0xE7,0xC2,0x95,0xDA } }; // 6B14A441-FBA7-4BD2-AF0A-839DE7C295DA
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpCookie>{ 0x1F5488E2,0xCC2D,0x4779,{ 0x86,0xA7,0x88,0xF1,0x06,0x87,0xD2,0x49 } }; // 1F5488E2-CC2D-4779-86A7-88F10687D249
@@ -305,6 +312,7 @@ namespace winrt::impl
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpMultipartFormDataContent>{ 0x64D337E2,0xE967,0x4624,{ 0xB6,0xD1,0xCF,0x74,0x60,0x4A,0x4A,0x42 } }; // 64D337E2-E967-4624-B6D1-CF74604A4A42
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpMultipartFormDataContentFactory>{ 0xA04D7311,0x5017,0x4622,{ 0x93,0xA8,0x49,0xB2,0x4A,0x4F,0xCB,0xFC } }; // A04D7311-5017-4622-93A8-49B24A4FCBFC
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpRequestMessage>{ 0xF5762B3C,0x74D4,0x4811,{ 0xB5,0xDC,0x9F,0x8B,0x4E,0x2F,0x9A,0xBF } }; // F5762B3C-74D4-4811-B5DC-9F8B4E2F9ABF
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpRequestMessage2>{ 0xC3C60489,0x62C2,0x4A3F,{ 0x95,0x54,0x22,0x6E,0x7C,0x60,0xBD,0x96 } }; // C3C60489-62C2-4A3F-9554-226E7C60BD96
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpRequestMessageFactory>{ 0x5BAC994E,0x3886,0x412E,{ 0xAE,0xC3,0x52,0xEC,0x7F,0x25,0x61,0x6F } }; // 5BAC994E-3886-412E-AEC3-52EC7F25616F
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpRequestResult>{ 0x6ACF4DA8,0xB5EB,0x4A35,{ 0xA9,0x02,0x42,0x17,0xFB,0xE8,0x20,0xC5 } }; // 6ACF4DA8-B5EB-4A35-A902-4217FBE820C5
template <> inline constexpr guid guid_v<winrt::Windows::Web::Http::IHttpResponseMessage>{ 0xFEE200FB,0x8664,0x44E0,{ 0x95,0xD9,0x42,0x69,0x61,0x99,0xBF,0xFC } }; // FEE200FB-8664-44E0-95D9-42696199BFFC
@@ -332,7 +340,7 @@ namespace winrt::impl
template <> struct default_interface<winrt::Windows::Web::Http::HttpTransportInformation>{ using type = winrt::Windows::Web::Http::IHttpTransportInformation; };
template <> struct abi<winrt::Windows::Web::Http::IHttpBufferContentFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromBuffer(void*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromBufferWithOffset(void*, uint32_t, uint32_t, void**) noexcept = 0;
@@ -340,7 +348,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpClient>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall DeleteAsync(void*, void**) noexcept = 0;
virtual int32_t __stdcall GetAsync(void*, void**) noexcept = 0;
@@ -357,7 +365,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpClient2>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall TryDeleteAsync(void*, void**) noexcept = 0;
virtual int32_t __stdcall TryGetAsync(void*, void**) noexcept = 0;
@@ -371,16 +379,24 @@ namespace winrt::impl
virtual int32_t __stdcall TrySendRequestAsync2(void*, int32_t, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpClient3>
{
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_DefaultPrivacyAnnotation(void**) noexcept = 0;
virtual int32_t __stdcall put_DefaultPrivacyAnnotation(void*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpClientFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpContent>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Headers(void**) noexcept = 0;
virtual int32_t __stdcall BufferAllAsync(void**) noexcept = 0;
@@ -393,7 +409,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpCookie>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Name(void**) noexcept = 0;
virtual int32_t __stdcall get_Domain(void**) noexcept = 0;
@@ -410,14 +426,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpCookieFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void*, void*, void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpCookieManager>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall SetCookie(void*, bool*) noexcept = 0;
virtual int32_t __stdcall SetCookieWithThirdParty(void*, bool, bool*) noexcept = 0;
@@ -427,14 +443,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpFormUrlEncodedContentFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpGetBufferResult>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_ExtendedError(winrt::hresult*) noexcept = 0;
virtual int32_t __stdcall get_RequestMessage(void**) noexcept = 0;
@@ -445,7 +461,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpGetInputStreamResult>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_ExtendedError(winrt::hresult*) noexcept = 0;
virtual int32_t __stdcall get_RequestMessage(void**) noexcept = 0;
@@ -456,7 +472,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpGetStringResult>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_ExtendedError(winrt::hresult*) noexcept = 0;
virtual int32_t __stdcall get_RequestMessage(void**) noexcept = 0;
@@ -467,21 +483,21 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpMethod>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Method(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpMethodFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpMethodStatics>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Delete(void**) noexcept = 0;
virtual int32_t __stdcall get_Get(void**) noexcept = 0;
@@ -494,14 +510,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpMultipartContent>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Add(void*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpMultipartContentFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateWithSubtype(void*, void**) noexcept = 0;
virtual int32_t __stdcall CreateWithSubtypeAndBoundary(void*, void*, void**) noexcept = 0;
@@ -509,7 +525,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpMultipartFormDataContent>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Add(void*) noexcept = 0;
virtual int32_t __stdcall AddWithName(void*, void*) noexcept = 0;
@@ -518,14 +534,14 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpMultipartFormDataContentFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateWithBoundary(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpRequestMessage>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Content(void**) noexcept = 0;
virtual int32_t __stdcall put_Content(void*) noexcept = 0;
@@ -538,16 +554,24 @@ namespace winrt::impl
virtual int32_t __stdcall get_TransportInformation(void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpRequestMessage2>
{
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_PrivacyAnnotation(void**) noexcept = 0;
virtual int32_t __stdcall put_PrivacyAnnotation(void*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpRequestMessageFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(void*, void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpRequestResult>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_ExtendedError(winrt::hresult*) noexcept = 0;
virtual int32_t __stdcall get_RequestMessage(void**) noexcept = 0;
@@ -557,7 +581,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpResponseMessage>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_Content(void**) noexcept = 0;
virtual int32_t __stdcall put_Content(void*) noexcept = 0;
@@ -578,21 +602,21 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpResponseMessageFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall Create(int32_t, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpStreamContentFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromInputStream(void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::Web::Http::IHttpStringContentFactory>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall CreateFromString(void*, void**) noexcept = 0;
virtual int32_t __stdcall CreateFromStringWithEncoding(void*, int32_t, void**) noexcept = 0;
@@ -601,7 +625,7 @@ namespace winrt::impl
};
template <> struct abi<winrt::Windows::Web::Http::IHttpTransportInformation>
{
struct __declspec(novtable) type : inspectable_abi
struct WINRT_IMPL_NOVTABLE type : inspectable_abi
{
virtual int32_t __stdcall get_ServerCertificate(void**) noexcept = 0;
virtual int32_t __stdcall get_ServerCertificateErrorSeverity(int32_t*) noexcept = 0;
@@ -657,6 +681,16 @@ namespace winrt::impl
template <typename D> using type = consume_Windows_Web_Http_IHttpClient2<D>;
};
template <typename D>
struct consume_Windows_Web_Http_IHttpClient3
{
[[nodiscard]] auto DefaultPrivacyAnnotation() const;
auto DefaultPrivacyAnnotation(param::hstring const& value) const;
};
template <> struct consume<winrt::Windows::Web::Http::IHttpClient3>
{
template <typename D> using type = consume_Windows_Web_Http_IHttpClient3<D>;
};
template <typename D>
struct consume_Windows_Web_Http_IHttpClientFactory
{
auto Create(winrt::Windows::Web::Http::Filters::IHttpFilter const& filter) const;
@@ -858,6 +892,16 @@ namespace winrt::impl
template <typename D> using type = consume_Windows_Web_Http_IHttpRequestMessage<D>;
};
template <typename D>
struct consume_Windows_Web_Http_IHttpRequestMessage2
{
[[nodiscard]] auto PrivacyAnnotation() const;
auto PrivacyAnnotation(param::hstring const& value) const;
};
template <> struct consume<winrt::Windows::Web::Http::IHttpRequestMessage2>
{
template <typename D> using type = consume_Windows_Web_Http_IHttpRequestMessage2<D>;
};
template <typename D>
struct consume_Windows_Web_Http_IHttpRequestMessageFactory
{
auto Create(winrt::Windows::Web::Http::HttpMethod const& method, winrt::Windows::Foundation::Uri const& uri) const;