gi-webkit-3.0.12: WebKit bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit.Objects.SecurityOrigin

Contents

Description

SecurityOrigin is a representation of a security domain defined by web sites. An origin consists of a host name, a protocol, and a port number. Web sites with the same security origin can access each other's resources for client-side scripting or database access.

Use webkit_web_frame_get_security_origin to get the security origin of a WebFrame.

Database quotas and usages are also defined per security origin. The cumulative disk usage of an origin's databases may be retrieved with webkit_security_origin_get_web_database_usage. An origin's quota can be adjusted with webkit_security_origin_set_web_database_quota.

Synopsis

Exported types

Methods

getAllWebDatabases

securityOriginGetAllWebDatabases Source #

Arguments

:: (HasCallStack, MonadIO m, IsSecurityOrigin a) 
=> a

securityOrigin: a SecurityOrigin

-> m [WebDatabase]

Returns: a List of databases in the security origin.

Returns a list of all Web Databases in the security origin.

Since: 1.1.14

getHost

securityOriginGetHost Source #

Arguments

:: (HasCallStack, MonadIO m, IsSecurityOrigin a) 
=> a

securityOrigin: a SecurityOrigin

-> m Text

Returns: the hostname for the security origin

Returns the hostname for the security origin.

Since: 1.1.14

getPort

securityOriginGetPort Source #

Arguments

:: (HasCallStack, MonadIO m, IsSecurityOrigin a) 
=> a

securityOrigin: a SecurityOrigin

-> m Word32

Returns: the port for the security origin

Returns the port for the security origin.

Since: 1.1.14

getProtocol

securityOriginGetProtocol Source #

Arguments

:: (HasCallStack, MonadIO m, IsSecurityOrigin a) 
=> a

securityOrigin: a SecurityOrigin

-> m Text

Returns: the protocol for the security origin

Returns the protocol for the security origin.

Since: 1.1.14

getWebDatabaseQuota

securityOriginGetWebDatabaseQuota Source #

Arguments

:: (HasCallStack, MonadIO m, IsSecurityOrigin a) 
=> a

securityOrigin: a SecurityOrigin

-> m Word64

Returns: the Web Database quota

Returns the quota for Web Database storage of the security origin in bytes.

Since: 1.1.14

getWebDatabaseUsage

securityOriginGetWebDatabaseUsage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSecurityOrigin a) 
=> a

securityOrigin: a SecurityOrigin

-> m Word64

Returns: the cumulative size of all databases

Returns the cumulative size of all Web Database database's in the origin in bytes.

Since: 1.1.14

setWebDatabaseQuota

securityOriginSetWebDatabaseQuota Source #

Arguments

:: (HasCallStack, MonadIO m, IsSecurityOrigin a) 
=> a

securityOrigin: a SecurityOrigin

-> Word64

quota: a new Web Database quota in bytes

-> m () 

Adjust the quota for Web Database storage of the security origin

Since: 1.1.14

Properties

host

data SecurityOriginHostPropertyInfo Source #

Instances

AttrInfo SecurityOriginHostPropertyInfo Source # 
type AttrOrigin SecurityOriginHostPropertyInfo Source # 
type AttrLabel SecurityOriginHostPropertyInfo Source # 
type AttrGetType SecurityOriginHostPropertyInfo Source # 
type AttrBaseTypeConstraint SecurityOriginHostPropertyInfo Source # 
type AttrSetTypeConstraint SecurityOriginHostPropertyInfo Source # 
type AttrAllowedOps SecurityOriginHostPropertyInfo Source # 

port

data SecurityOriginPortPropertyInfo Source #

Instances

AttrInfo SecurityOriginPortPropertyInfo Source # 
type AttrOrigin SecurityOriginPortPropertyInfo Source # 
type AttrLabel SecurityOriginPortPropertyInfo Source # 
type AttrGetType SecurityOriginPortPropertyInfo Source # 
type AttrBaseTypeConstraint SecurityOriginPortPropertyInfo Source # 
type AttrSetTypeConstraint SecurityOriginPortPropertyInfo Source # 
type AttrAllowedOps SecurityOriginPortPropertyInfo Source # 

protocol

data SecurityOriginProtocolPropertyInfo Source #

Instances

AttrInfo SecurityOriginProtocolPropertyInfo Source # 
type AttrOrigin SecurityOriginProtocolPropertyInfo Source # 
type AttrLabel SecurityOriginProtocolPropertyInfo Source # 
type AttrGetType SecurityOriginProtocolPropertyInfo Source # 
type AttrBaseTypeConstraint SecurityOriginProtocolPropertyInfo Source # 
type AttrSetTypeConstraint SecurityOriginProtocolPropertyInfo Source # 
type AttrAllowedOps SecurityOriginProtocolPropertyInfo Source # 

webDatabaseQuota

data SecurityOriginWebDatabaseQuotaPropertyInfo Source #

Instances

AttrInfo SecurityOriginWebDatabaseQuotaPropertyInfo Source # 
type AttrOrigin SecurityOriginWebDatabaseQuotaPropertyInfo Source # 
type AttrLabel SecurityOriginWebDatabaseQuotaPropertyInfo Source # 
type AttrGetType SecurityOriginWebDatabaseQuotaPropertyInfo Source # 
type AttrBaseTypeConstraint SecurityOriginWebDatabaseQuotaPropertyInfo Source # 
type AttrSetTypeConstraint SecurityOriginWebDatabaseQuotaPropertyInfo Source # 
type AttrAllowedOps SecurityOriginWebDatabaseQuotaPropertyInfo Source # 

webDatabaseUsage

data SecurityOriginWebDatabaseUsagePropertyInfo Source #

Instances

AttrInfo SecurityOriginWebDatabaseUsagePropertyInfo Source # 
type AttrOrigin SecurityOriginWebDatabaseUsagePropertyInfo Source # 
type AttrLabel SecurityOriginWebDatabaseUsagePropertyInfo Source # 
type AttrGetType SecurityOriginWebDatabaseUsagePropertyInfo Source # 
type AttrBaseTypeConstraint SecurityOriginWebDatabaseUsagePropertyInfo Source # 
type AttrSetTypeConstraint SecurityOriginWebDatabaseUsagePropertyInfo Source # 
type AttrAllowedOps SecurityOriginWebDatabaseUsagePropertyInfo Source #