applicationcache

package
v0.0.0-...-076f285 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationCache

type ApplicationCache struct {
	ManifestURL  string                     `json:"manifestURL"`  // Manifest URL.
	Size         float64                    `json:"size"`         // Application cache size.
	CreationTime float64                    `json:"creationTime"` // Application cache creation time.
	UpdateTime   float64                    `json:"updateTime"`   // Application cache update time.
	Resources    []ApplicationCacheResource `json:"resources"`    // Application cache resources.
}

type ApplicationCacheAgent

type ApplicationCacheAgent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(conn *shared.Connection) *ApplicationCacheAgent

func (*ApplicationCacheAgent) FireApplicationCacheStatusUpdated

func (agent *ApplicationCacheAgent) FireApplicationCacheStatusUpdated(event ApplicationCacheStatusUpdatedEvent)

Dispatchable Events

func (*ApplicationCacheAgent) FireApplicationCacheStatusUpdatedOnTarget

func (agent *ApplicationCacheAgent) FireApplicationCacheStatusUpdatedOnTarget(targetId string, event ApplicationCacheStatusUpdatedEvent)

func (*ApplicationCacheAgent) FireNetworkStateUpdated

func (agent *ApplicationCacheAgent) FireNetworkStateUpdated(event NetworkStateUpdatedEvent)

func (*ApplicationCacheAgent) FireNetworkStateUpdatedOnTarget

func (agent *ApplicationCacheAgent) FireNetworkStateUpdatedOnTarget(targetId string, event NetworkStateUpdatedEvent)

func (*ApplicationCacheAgent) Name

func (agent *ApplicationCacheAgent) Name() string

func (*ApplicationCacheAgent) ProcessCommand

func (agent *ApplicationCacheAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*ApplicationCacheAgent) SetEnableHandler

func (agent *ApplicationCacheAgent) SetEnableHandler(handler func(EnableCommand))

func (*ApplicationCacheAgent) SetGetApplicationCacheForFrameHandler

func (agent *ApplicationCacheAgent) SetGetApplicationCacheForFrameHandler(handler func(GetApplicationCacheForFrameCommand))

func (*ApplicationCacheAgent) SetGetFramesWithManifestsHandler

func (agent *ApplicationCacheAgent) SetGetFramesWithManifestsHandler(handler func(GetFramesWithManifestsCommand))

Commands Sent From Frontend

func (*ApplicationCacheAgent) SetGetManifestForFrameHandler

func (agent *ApplicationCacheAgent) SetGetManifestForFrameHandler(handler func(GetManifestForFrameCommand))

type ApplicationCacheResource

type ApplicationCacheResource struct {
	Url  string `json:"url"`  // Resource url.
	Size int64  `json:"size"` // Resource size.
	Type string `json:"type"` // Resource type.
}

type ApplicationCacheStatusUpdatedEvent

type ApplicationCacheStatusUpdatedEvent struct {
	FrameId     page.FrameId `json:"frameId"`     // Identifier of the frame containing document whose application cache updated status.
	ManifestURL string       `json:"manifestURL"` // Manifest URL.
	Status      int64        `json:"status"`      // Updated application cache status.
}

type EnableCommand

type EnableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*EnableCommand) Initalize

func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EnableCommand) Respond

func (c *EnableCommand) Respond()

func (*EnableCommand) RespondWithError

func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EnableCommandFn

type EnableCommandFn struct {
	// contains filtered or unexported fields
}

func (*EnableCommandFn) Load

func (a *EnableCommandFn) Load() func(EnableCommand)

func (*EnableCommandFn) Store

func (a *EnableCommandFn) Store(fn func(EnableCommand))

type EnableReturn

type EnableReturn struct {
}

type FrameWithManifest

type FrameWithManifest struct {
	FrameId     page.FrameId `json:"frameId"`     // Frame identifier.
	ManifestURL string       `json:"manifestURL"` // Manifest URL.
	Status      int64        `json:"status"`      // Application cache status.
}

type GetApplicationCacheForFrameCommand

type GetApplicationCacheForFrameCommand struct {
	DestinationTargetID string

	FrameId page.FrameId `json:"frameId"` // Identifier of the frame containing document whose application cache is retrieved.
	// contains filtered or unexported fields
}

func (*GetApplicationCacheForFrameCommand) Initalize

func (c *GetApplicationCacheForFrameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetApplicationCacheForFrameCommand) Respond

func (*GetApplicationCacheForFrameCommand) RespondWithError

func (c *GetApplicationCacheForFrameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetApplicationCacheForFrameCommandFn

type GetApplicationCacheForFrameCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetApplicationCacheForFrameCommandFn) Load

func (*GetApplicationCacheForFrameCommandFn) Store

type GetApplicationCacheForFrameReturn

type GetApplicationCacheForFrameReturn struct {
	ApplicationCache ApplicationCache `json:"applicationCache"` // Relevant application cache data for the document in given frame.
}

type GetFramesWithManifestsCommand

type GetFramesWithManifestsCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*GetFramesWithManifestsCommand) Initalize

func (c *GetFramesWithManifestsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetFramesWithManifestsCommand) Respond

func (*GetFramesWithManifestsCommand) RespondWithError

func (c *GetFramesWithManifestsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetFramesWithManifestsCommandFn

type GetFramesWithManifestsCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetFramesWithManifestsCommandFn) Load

func (*GetFramesWithManifestsCommandFn) Store

type GetFramesWithManifestsReturn

type GetFramesWithManifestsReturn struct {
	FrameIds []FrameWithManifest `json:"frameIds"` // Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
}

type GetManifestForFrameCommand

type GetManifestForFrameCommand struct {
	DestinationTargetID string

	FrameId page.FrameId `json:"frameId"` // Identifier of the frame containing document whose manifest is retrieved.
	// contains filtered or unexported fields
}

func (*GetManifestForFrameCommand) Initalize

func (c *GetManifestForFrameCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetManifestForFrameCommand) Respond

func (*GetManifestForFrameCommand) RespondWithError

func (c *GetManifestForFrameCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetManifestForFrameCommandFn

type GetManifestForFrameCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetManifestForFrameCommandFn) Load

func (*GetManifestForFrameCommandFn) Store

type GetManifestForFrameReturn

type GetManifestForFrameReturn struct {
	ManifestURL string `json:"manifestURL"` // Manifest URL for document in the given frame.
}

type NetworkStateUpdatedEvent

type NetworkStateUpdatedEvent struct {
	IsNowOnline bool `json:"isNowOnline"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL