Pepper_47_C_interfaces
Public Attributes | List of all members
PPB_URLLoaderTrusted_0_3 Struct Reference

#include <ppb_url_loader_trusted.h>

Collaboration diagram for PPB_URLLoaderTrusted_0_3:
Collaboration graph

Public Attributes

void(* GrantUniversalAccess )(PP_Resource loader)
 
void(* RegisterStatusCallback )(PP_Resource loader, PP_URLLoaderTrusted_StatusCallback cb)
 

Detailed Description

Definition at line 48 of file ppb_url_loader_trusted.h.

Member Data Documentation

void(* PPB_URLLoaderTrusted_0_3::GrantUniversalAccess)(PP_Resource loader)

Grant this URLLoader the capability to make unrestricted cross-origin requests.

Definition at line 53 of file ppb_url_loader_trusted.h.

void(* PPB_URLLoaderTrusted_0_3::RegisterStatusCallback)(PP_Resource loader, PP_URLLoaderTrusted_StatusCallback cb)

Registers that the given function will be called when the upload or downloaded byte count has changed. This is not exposed on the untrusted interface because it can be quite chatty and encourages people to write feedback UIs that update as frequently as the progress updates.

The other serious gotcha with this callback is that the callback must not mutate the URL loader or cause it to be destroyed.

However, the proxy layer needs this information to push to the other process, so we expose it here. Only one callback can be set per URL Loader. Setting to a NULL callback will disable it.

Definition at line 67 of file ppb_url_loader_trusted.h.


The documentation for this struct was generated from the following file: