Skip to content

Truly independent web browser

2.0 KB
Raw Blame
#include <LibHTTP/Cookie/Cookie.h>
#include <LibHTTP/Cookie/ParsedCookie.h>
#include <LibHTTP/HSTS/ParsedHSTSPolicy.h>
#include <LibRequests/CacheSizes.h>
#include <LibRequests/NetworkUsage.h>
#include <LibURL/URL.h>
#include <RequestServer/IsPrivate.h>
#include <RequestServer/RequestType.h>

endpoint RequestServerControlClient
{
    // A client is gone for good: its ID is never handed out again.
    client_disconnected(int client_id) =|

    // The partition context comes from the request's network isolation key, and is nothing for a request without one.
    retrieve_http_cookie(int client_id, u64 request_id, ::RequestServer::RequestType request_type, u64 cookie_request_id, URL::URL url, Optional<HTTP::Cookie::PartitionContext> partition_context, HTTP::Cookie::SameSiteContext same_site_context) =|
    store_response_cookies_and_hsts_policy(int client_id, u64 request_id, u64 store_request_id, URL::URL url, Optional<HTTP::Cookie::PartitionContext> partition_context, HTTP::Cookie::SameSiteContext same_site_context, Vector<HTTP::Cookie::ParsedCookie> cookies, Optional<HTTP::HSTS::ParsedHSTSPolicy> hsts_policy) =|

    rejected_self_signed_certificate(ByteString host, u16 port, ByteString fingerprint) =|

    network_usage(Vector<Requests::NetworkUsage> usage, u64 interval_microseconds) =|

    estimated_cache_size(u64 cache_size_estimation_id, Requests::CacheSizes sizes) =|
    removed_cache_entries(u64 clear_cache_request_id) =|

    // Sent once the disk cache's size settles after changing.
    disk_cache_size_changed(u64 size) =|
    retrieved_cache_access_profile(u64 access_profile_request_id, Vector<Requests::CacheAccessBucket> buckets) =|

    request_adopter_designated(u64 designation_id) =|
    // RequestServer has no access to the files the system resolver reads, such as /etc/resolv.conf, so the process
    // that launched it resolves a name for it. ipv6: whether to look up IPv6 addresses rather than IPv4 ones.
    resolve_host_with_system_resolver(u64 resolution_id, ByteString host, bool ipv6) =|
}