Tungsten v0.1.0 Tungsten.CDP.ApplicationCache View Source

ApplicationCache

This domain has no documentation

Link to this section Summary

Link to this section Types

Link to this type

cdp_application_cache_resource_type() View Source
cdp_application_cache_resource_type() :: %{
  url: String.t(),
  size: integer(),
  type: String.t()
}

ApplicationCache.ApplicationCacheResource

Detailed application cache resource information.

Link to this type

cdp_application_cache_type() View Source
cdp_application_cache_type() :: %{
  manifest_url: String.t(),
  size: integer() | float(),
  creation_time: integer() | float(),
  update_time: integer() | float(),
  resources: [cdp_application_cache_resource_type()]
}

ApplicationCache.ApplicationCache

Detailed application cache information.

Link to this type

cdp_frame_with_manifest_type() View Source
cdp_frame_with_manifest_type() :: %{
  frame_id: Tungsten.CDP.Page.cdp_frame_id_type(),
  manifest_url: String.t(),
  status: integer()
}

ApplicationCache.FrameWithManifest

Frame identifier - manifest URL pair.

Link to this section Functions

Link to this function

enable(session, parameters \\ %{}, options \\ []) View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

ApplicationCache.enable

Enables application cache domain notifications.

Link to this function

get_application_cache_for_frame(session, parameters, options \\ []) View Source
get_application_cache_for_frame(
  GenServer.server(),
  %{frame_id: Tungsten.CDP.Page.cdp_frame_id_type()},
  Tungsten.Connection.exec_options()
) ::
  {:ok, %{application_cache: cdp_application_cache_type()}} | {:error, term()}

ApplicationCache.getApplicationCacheForFrame

Returns relevant application cache data for the document in given frame.

Link to this function

get_frames_with_manifests(session, parameters \\ %{}, options \\ []) View Source
get_frames_with_manifests(
  GenServer.server(),
  map(),
  Tungsten.Connection.exec_options()
) :: {:ok, %{frame_ids: [cdp_frame_with_manifest_type()]}} | {:error, term()}

ApplicationCache.getFramesWithManifests

Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.

Link to this function

get_manifest_for_frame(session, parameters, options \\ []) View Source
get_manifest_for_frame(
  GenServer.server(),
  %{frame_id: Tungsten.CDP.Page.cdp_frame_id_type()},
  Tungsten.Connection.exec_options()
) :: {:ok, %{manifest_url: String.t()}} | {:error, term()}

ApplicationCache.getManifestForFrame

Returns manifest URL for document in the given frame.