pub enum CoreResourceMsg {
Show 29 variants
Fetch(RequestBuilder, FetchChannels),
Cancel(Vec<RequestId>),
FetchRedirect(RequestBuilder, ResponseInit, IpcSender<FetchResponseMsg>),
SetCookieForUrl(ServoUrl, Serde<Cookie<'static>>, CookieSource, Option<GenericSender<()>>),
SetCookiesForUrl(ServoUrl, Vec<Serde<Cookie<'static>>>, CookieSource),
SetCookieForUrlAsync(CookieStoreId, ServoUrl, Serde<Cookie<'static>>, CookieSource),
GetCookieStringForUrl(ServoUrl, GenericSender<Option<String>>, CookieSource),
GetCookiesForUrl(ServoUrl, GenericSender<Vec<Serde<Cookie<'static>>>>, CookieSource),
GetCookiesDataForUrl(ServoUrl, GenericSender<Vec<Serde<Cookie<'static>>>>, CookieSource),
GetCookieDataForUrlAsync(CookieStoreId, ServoUrl, Option<String>),
GetAllCookieDataForUrlAsync(CookieStoreId, ServoUrl, Option<String>),
DeleteCookiesForSites(Vec<String>, GenericSender<()>),
DeleteCookies(Option<ServoUrl>, Option<IpcSender<()>>),
DeleteCookie(ServoUrl, String),
DeleteCookieAsync(CookieStoreId, ServoUrl, String),
NewCookieListener(CookieStoreId, GenericCallback<CookieAsyncResponse>, ServoUrl),
RemoveCookieListener(CookieStoreId),
ListCookies(GenericSender<Vec<SiteDescriptor>>),
GetHistoryState(HistoryStateId, GenericSender<Option<Vec<u8>>>),
SetHistoryState(HistoryStateId, Vec<u8>),
RemoveHistoryStates(Vec<HistoryStateId>),
GetCacheEntries(GenericSender<Vec<CacheEntryDescriptor>>),
ClearCache(Option<GenericSender<()>>),
NetworkMediator(IpcSender<CustomResponseMediator>, ImmutableOrigin),
ToFileManager(FileManagerThreadMsg),
StorePreloadedResponse(PreloadId, Response),
TotalSizeOfInFlightKeepAliveRecords(PipelineId, GenericSender<u64>),
Exit(GenericOneshotSender<()>),
CollectMemoryReport(ReportsChan),
}Variants§
Fetch(RequestBuilder, FetchChannels)
Cancel(Vec<RequestId>)
FetchRedirect(RequestBuilder, ResponseInit, IpcSender<FetchResponseMsg>)
Initiate a fetch in response to processing a redirection
SetCookieForUrl(ServoUrl, Serde<Cookie<'static>>, CookieSource, Option<GenericSender<()>>)
Store a cookie for a given originating URL. If a sender is provided, the caller will block until the cookie is stored.
SetCookiesForUrl(ServoUrl, Vec<Serde<Cookie<'static>>>, CookieSource)
Store a set of cookies for a given originating URL
SetCookieForUrlAsync(CookieStoreId, ServoUrl, Serde<Cookie<'static>>, CookieSource)
GetCookieStringForUrl(ServoUrl, GenericSender<Option<String>>, CookieSource)
Retrieve the stored cookies as a header string for a given URL.
GetCookiesForUrl(ServoUrl, GenericSender<Vec<Serde<Cookie<'static>>>>, CookieSource)
Retrieve the stored cookies as a vector for the given URL.
GetCookiesDataForUrl(ServoUrl, GenericSender<Vec<Serde<Cookie<'static>>>>, CookieSource)
Get a cookie by name for a given originating URL
GetCookieDataForUrlAsync(CookieStoreId, ServoUrl, Option<String>)
GetAllCookieDataForUrlAsync(CookieStoreId, ServoUrl, Option<String>)
DeleteCookiesForSites(Vec<String>, GenericSender<()>)
DeleteCookies(Option<ServoUrl>, Option<IpcSender<()>>)
This currently is used by unit tests and WebDriver only.
When url is None, this clears cookies across all origins.
DeleteCookie(ServoUrl, String)
DeleteCookieAsync(CookieStoreId, ServoUrl, String)
NewCookieListener(CookieStoreId, GenericCallback<CookieAsyncResponse>, ServoUrl)
RemoveCookieListener(CookieStoreId)
ListCookies(GenericSender<Vec<SiteDescriptor>>)
GetHistoryState(HistoryStateId, GenericSender<Option<Vec<u8>>>)
Get a history state by a given history state id
SetHistoryState(HistoryStateId, Vec<u8>)
Set a history state for a given history state id
RemoveHistoryStates(Vec<HistoryStateId>)
Removes history states for the given ids
GetCacheEntries(GenericSender<Vec<CacheEntryDescriptor>>)
Gets a list of origin descriptors derived from entries in the cache
ClearCache(Option<GenericSender<()>>)
Clear the network cache.
NetworkMediator(IpcSender<CustomResponseMediator>, ImmutableOrigin)
Send the service worker network mediator for an origin to CoreResourceThread
ToFileManager(FileManagerThreadMsg)
Message forwarded to file manager’s handler
StorePreloadedResponse(PreloadId, Response)
TotalSizeOfInFlightKeepAliveRecords(PipelineId, GenericSender<u64>)
Exit(GenericOneshotSender<()>)
Break the load handler loop, send a reply when done cleaning up local resources and exit
CollectMemoryReport(ReportsChan)
Trait Implementations§
Source§impl Debug for CoreResourceMsg
impl Debug for CoreResourceMsg
Source§impl<'de> Deserialize<'de> for CoreResourceMsg
impl<'de> Deserialize<'de> for CoreResourceMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl GenericSend<CoreResourceMsg> for ResourceThreads
impl GenericSend<CoreResourceMsg> for ResourceThreads
Source§fn send(&self, msg: CoreResourceMsg) -> SendResult
fn send(&self, msg: CoreResourceMsg) -> SendResult
Source§fn sender(&self) -> GenericSender<CoreResourceMsg>
fn sender(&self) -> GenericSender<CoreResourceMsg>
Auto Trait Implementations§
impl !Freeze for CoreResourceMsg
impl !RefUnwindSafe for CoreResourceMsg
impl Send for CoreResourceMsg
impl !Sync for CoreResourceMsg
impl Unpin for CoreResourceMsg
impl UnsafeUnpin for CoreResourceMsg
impl !UnwindSafe for CoreResourceMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more