webkit-0.12.6.1: Binding to the Webkit library.

Maintainer | gtk2hs-users@lists.sourceforge.net
Stability | provisional
Portability | portable (depends on GHC)
Safe Haskell | None
Language | Haskell98

Graphics.UI.Gtk.WebKit.SecurityOrigin

Contents

- Desciption
- Types
- Methods

Description

Access to the WebKit Web SecurityOrigin

Synopsis

- data SecurityOrigin
- class GObjectClass o => SecurityOriginClass o
- securityOriginGetAllWebDatabases :: SecurityOriginClass self => self -> IO [WebDatabase]
- securityOriginGetHost :: SecurityOriginClass self => self -> IO String
- securityOriginGetPort :: SecurityOriginClass self => self -> IO Int
- securityOriginGetProtocol :: SecurityOriginClass self => self -> IO String
- securityOriginGetWebDatabaseQuota :: SecurityOriginClass self => self -> IO Int
- securityOriginSetWebDatabaseQuota :: SecurityOriginClass self => self -> Int -> IO ()
- securityOriginGetWebDatabaseUsage :: SecurityOriginClass self => self -> IO Int

# Desciption

WebKitSecurityOrigin 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 `webFrameGetSecurityOrigin` to get the security origin of a WebKitWebFrame.

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

# Types

data SecurityOrigin

Instances

Eq SecurityOrigin |
Ord SecurityOrigin |
GObjectClass SecurityOrigin |
SecurityOriginClass SecurityOrigin |

class GObjectClass o => SecurityOriginClass o

Instances

SecurityOriginClass SecurityOrigin |

# Methods

securityOriginGetAllWebDatabases :: SecurityOriginClass self => self -> IO [WebDatabase]

Returns the frame's security origin.

securityOriginGetHost :: SecurityOriginClass self => self -> IO String

Returns the hostname for the security origin.

securityOriginGetPort :: SecurityOriginClass self => self -> IO Int

Returns the port for the security origin.

securityOriginGetProtocol :: SecurityOriginClass self => self -> IO String

Returns the protocol for the security origin.

securityOriginGetWebDatabaseQuota :: SecurityOriginClass self => self -> IO Int

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

securityOriginSetWebDatabaseQuota :: SecurityOriginClass self => self -> Int -> IO ()

Adjust the quota for Web Database storage of the security origin

securityOriginGetWebDatabaseUsage :: SecurityOriginClass self => self -> IO Int

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