Top |
gchar * | local-storage-directory | Read / Write / Construct Only |
WebKitWebsiteDataManager * | website-data-manager | Read / Write / Construct Only |
struct | WebKitWebContext |
enum | WebKitCacheModel |
enum | WebKitProcessModel |
enum | WebKitTLSErrorsPolicy |
enum | WebKitNetworkProxyMode |
WebKitWebContext *
webkit_web_context_new_with_website_data_manager
(WebKitWebsiteDataManager *manager
);
gboolean
webkit_web_context_is_ephemeral (WebKitWebContext *context
);
gboolean
webkit_web_context_is_automation_allowed
(WebKitWebContext *context
);
void webkit_web_context_set_automation_allowed (WebKitWebContext *context
,gboolean allowed
);
WebKitWebsiteDataManager *
webkit_web_context_get_website_data_manager
(WebKitWebContext *context
);
WebKitCacheModel
webkit_web_context_get_cache_model (WebKitWebContext *context
);
void webkit_web_context_set_cache_model (WebKitWebContext *context
,WebKitCacheModel cache_model
);
guint
webkit_web_context_get_web_process_count_limit
(WebKitWebContext *context
);
void webkit_web_context_set_web_process_count_limit (WebKitWebContext *context
,guint limit
);
void webkit_web_context_set_network_proxy_settings (WebKitWebContext *context
,WebKitNetworkProxyMode proxy_mode
,WebKitNetworkProxySettings *proxy_settings
);
WebKitDownload * webkit_web_context_download_uri (WebKitWebContext *context
,const gchar *uri
);
WebKitCookieManager *
webkit_web_context_get_cookie_manager (WebKitWebContext *context
);
WebKitFaviconDatabase *
webkit_web_context_get_favicon_database
(WebKitWebContext *context
);
void webkit_web_context_set_favicon_database_directory (WebKitWebContext *context
,const gchar *path
);
const gchar *
webkit_web_context_get_favicon_database_directory
(WebKitWebContext *context
);
WebKitSecurityManager *
webkit_web_context_get_security_manager
(WebKitWebContext *context
);
void webkit_web_context_set_additional_plugins_directory (WebKitWebContext *context
,const gchar *directory
);
void webkit_web_context_get_plugins (WebKitWebContext *context
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
GList * webkit_web_context_get_plugins_finish (WebKitWebContext *context
,GAsyncResult *result
,GError **error
);
gboolean
webkit_web_context_get_spell_checking_enabled
(WebKitWebContext *context
);
void webkit_web_context_set_spell_checking_enabled (WebKitWebContext *context
,gboolean enabled
);
const gchar * const *
webkit_web_context_get_spell_checking_languages
(WebKitWebContext *context
);
void webkit_web_context_set_spell_checking_languages (WebKitWebContext *context
,const gchar * const *languages
);
void webkit_web_context_set_preferred_languages (WebKitWebContext *context
,const gchar * const *languages
);
void webkit_web_context_set_tls_errors_policy (WebKitWebContext *context
,WebKitTLSErrorsPolicy policy
);
WebKitTLSErrorsPolicy
webkit_web_context_get_tls_errors_policy
(WebKitWebContext *context
);
void webkit_web_context_set_web_extensions_directory (WebKitWebContext *context
,const gchar *directory
);
void webkit_web_context_set_web_extensions_initialization_user_data (WebKitWebContext *context
,GVariant *user_data
);
void webkit_web_context_prefetch_dns (WebKitWebContext *context
,const gchar *hostname
);
void webkit_web_context_set_disk_cache_directory (WebKitWebContext *context
,const gchar *directory
);
webkit_web_context_set_disk_cache_directory
is deprecated and should not be used in newly-written code.
void webkit_web_context_allow_tls_certificate_for_host (WebKitWebContext *context
,GTlsCertificate *certificate
,const gchar *host
);
WebKitProcessModel
webkit_web_context_get_process_model (WebKitWebContext *context
);
void webkit_web_context_set_process_model (WebKitWebContext *context
,WebKitProcessModel process_model
);
void webkit_web_context_initialize_notification_permissions (WebKitWebContext *context
,GList *allowed_origins
,GList *disallowed_origins
);
void (*WebKitURISchemeRequestCallback) (WebKitURISchemeRequest *request
,gpointer user_data
);
Type definition for a function that will be called back when an URI request is made for a user registered URI scheme.
void webkit_web_context_register_uri_scheme (WebKitWebContext *context
,const gchar *scheme
,WebKitURISchemeRequestCallback callback
,gpointer user_data
,GDestroyNotify user_data_destroy_func
);
Enum values used for determining the WebKitWebContext cache model.
Disable the cache completely, which substantially reduces memory usage. Useful for applications that only access a single local file, with no navigation to other pages. No remote resources will be cached. |
||
Improve document load speed substantially by caching a very large number of resources and previously viewed content. |
||
A cache model optimized for viewing a series of local files -- for example, a documentation viewer or a website designer. WebKit will cache a moderate number of resources. |
Enum values used for determining the WebKitWebContext process model.
Use a single process to perform content rendering. The process is shared among all the WebKitWebView instances created by the application: if the process hangs or crashes all the web views in the application will be affected. This is the default process model, and it should suffice for most cases. |
||
Use one process for each WebKitWebView, while still allowing for some of them to share a process in certain situations. The main advantage of this process model is that the rendering process for a web view can crash while the rest of the views keep working normally. This process model is indicated for applications which may use a number of web views and the content of in each must not interfere with the rest — for example a full-fledged web browser with support for multiple tabs. |
Since: 2.4
Enum values used to denote the TLS errors policy.
Ignore TLS errors. |
||
TLS errors will emit “load-failed-with-tls-errors” and, if the signal is handled, finish the load. In case the signal is not handled, “load-failed” is emitted before the load finishes. |
“local-storage-directory”
property“local-storage-directory” gchar *
The directory where local storage data will be saved.
Flags: Read / Write / Construct Only
Default value: NULL
“website-data-manager”
property“website-data-manager” WebKitWebsiteDataManager *
The WebKitWebsiteDataManager associated with this context.
Flags: Read / Write / Construct Only
“automation-started”
signalvoid user_function (WebKitWebContext *webkitwebcontext, WebKitAutomationSession *arg1, gpointer user_data)
Flags: Run Last
“download-started”
signalvoid user_function (WebKitWebContext *webkitwebcontext, WebKitDownload *arg1, gpointer user_data)
Flags: Run Last
“initialize-notification-permissions”
signalvoid user_function (WebKitWebContext *webkitwebcontext, gpointer user_data)
Flags: Run Last
“initialize-web-extensions”
signalvoid user_function (WebKitWebContext *webkitwebcontext, gpointer user_data)
Flags: Run Last