Gjsify LogoGjsify Logo

Hierarchy

  • SecurityOrigin

Index

Constructors

  • Create a new security origin from the provided protocol, host and port.

    Parameters

    • protocol: string

      The protocol for the new origin

    • host: string

      The host for the new origin

    • port: number

      The port number for the new origin, or 0 to indicate the default port for protocol

    Returns WebKit2.SecurityOrigin

Properties

name: string

Methods

  • getHost(): string
  • Gets the hostname of origin. It is reasonable for this to be %NULL if its protocol does not require a host component.

    Returns string

  • getPort(): number
  • Gets the port of origin. This function will always return 0 if the port is the default port for the given protocol. For example, http://example.com has the same security origin as http://example.com:80, and this function will return 0 for a #WebKitSecurityOrigin constructed from either URI.

    Returns number

  • getProtocol(): string
  • isOpaque(): boolean
  • This function returns %FALSE. #WebKitSecurityOrigin is now a simple wrapper around a <protocol, host, port> triplet, and no longer represents an origin as defined by web standards that may be opaque.

    Returns boolean

  • toString(): string
  • Gets a string representation of origin. The string representation is a valid URI with only protocol, host, and port components, or %NULL.

    Returns string

  • unref(): void
  • Atomically decrements the reference count of origin by one. If the reference count drops to 0, all memory allocated by #WebKitSecurityOrigin is released. This function is MT-safe and may be called from any thread.

    Returns void

  • Create a new security origin from the provided protocol, host and port.

    Parameters

    • protocol: string

      The protocol for the new origin

    • host: string

      The host for the new origin

    • port: number

      The port number for the new origin, or 0 to indicate the default port for protocol

    Returns WebKit2.SecurityOrigin

  • Create a new security origin from the provided URI. Components of uri other than protocol, host, and port do not affect the created #WebKitSecurityOrigin.

    Parameters

    • uri: string

      The URI for the new origin

    Returns WebKit2.SecurityOrigin

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method