Class

WebKit2UserContentFilterStore

Description [src]

class WebKit2.UserContentFilterStore : GObject.Object {
  parent: GObject
}

Handles storage of user content filters on disk.

The WebKitUserContentFilterStore provides the means to import and save JSON rule sets, which can be loaded later in an efficient manner. Once filters are stored, the WebKitUserContentFilter objects which represent them can be added to a WebKitUserContentManager with webkit_user_content_manager_add_filter().

JSON rule sets are imported using webkit_user_content_filter_store_save() and stored on disk in an implementation defined format. The contents of a filter store must be managed using the WebKitUserContentFilterStore: a list of all the stored filters can be obtained with webkit_user_content_filter_store_fetch_identifiers(), webkit_user_content_filter_store_load() can be used to retrieve a previously saved filter, and removed from the store with webkit_user_content_filter_store_remove().

Available since:2.24

Hierarchy

hierarchy this WebKitUserContentFilterStore ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

webkit_user_content_filter_store_new

Create a new WebKitUserContentFilterStore to manipulate filters stored at storage_path. The path must point to a local filesystem, and will be created if needed.

Available since: 2.24

Instance methods

webkit_user_content_filter_store_fetch_identifiers

Asynchronously retrieve a list of the identifiers for all the stored filters.

Available since: 2.24

webkit_user_content_filter_store_fetch_identifiers_finish

Finishes an asynchronous fetch of the list of identifiers for the stored filters previously started with webkit_user_content_filter_store_fetch_identifiers().

Available since: 2.24

webkit_user_content_filter_store_get_path

Gets the storage path for user content filters.

Available since: 2.24

webkit_user_content_filter_store_load

Asynchronously load a content filter given its identifier. The filter must have been previously stored using webkit_user_content_filter_store_save().

Available since: 2.24

webkit_user_content_filter_store_load_finish

Finishes an asynchronous filter load previously started with webkit_user_content_filter_store_load().

Available since: 2.24

webkit_user_content_filter_store_remove

Asynchronously remove a content filter given its identifier.

Available since: 2.24

webkit_user_content_filter_store_remove_finish

Finishes an asynchronous filter removal previously started with webkit_user_content_filter_store_remove().

Available since: 2.24

webkit_user_content_filter_store_save

Asynchronously save a content filter from a source rule set in the WebKit content extesions JSON format.

Available since: 2.24

webkit_user_content_filter_store_save_finish

Finishes an asynchronous filter save previously started with webkit_user_content_filter_store_save().

Available since: 2.24

webkit_user_content_filter_store_save_from_file

Asynchronously save a content filter from the contents of a file, which must be native to the platform, as checked by g_file_is_native(). See webkit_user_content_filter_store_save() for more details.

Available since: 2.24

webkit_user_content_filter_store_save_from_file_finish

Finishes and asynchronous filter save previously started with webkit_user_content_filter_store_save_from_file().

Available since: 2.24

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

WebKit2.UserContentFilterStore:path

The directory used for filter storage. This path is used as the base directory where user content filters are stored on disk.

Available since: 2.24

Signals

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct WebKit2UserContentFilterStoreClass {
  GObjectClass parent_class;
  void (* _webkit_reserved0) (
void
  );
  void (* _webkit_reserved1) (
void
  );
  void (* _webkit_reserved2) (
void
  );
  void (* _webkit_reserved3) (
void
  );
  
}
No description available.
Class members
parent_class
GObjectClass
  No description available.
_webkit_reserved0
void (* _webkit_reserved0) (
void
  )
  No description available.
_webkit_reserved1
void (* _webkit_reserved1) (
void
  )
  No description available.
_webkit_reserved2
void (* _webkit_reserved2) (
void
  )
  No description available.
_webkit_reserved3
void (* _webkit_reserved3) (
void
  )
  No description available.