EWebKit  1.0
Typedefs | Functions
ewk_application_cache_manager.h File Reference

Describes the Ewk Application Cache Manager API. More...

#include "ewk_security_origin.h"
#include <Eina.h>

Go to the source code of this file.

Typedefs

typedef struct EwkApplicationCacheManager Ewk_Application_Cache_Manager
 
typedef void(* Ewk_Application_Cache_Origins_Async_Get_Cb) (Eina_List *origins, void *user_data)
 Callback for ewk_application_cache_manager_origins_async_get. More...
 

Functions

EAPI void ewk_application_cache_manager_origins_async_get (const Ewk_Application_Cache_Manager *manager, Ewk_Application_Cache_Origins_Async_Get_Cb callback, void *user_data)
 
EAPI Eina_Bool ewk_application_cache_manager_clear (Ewk_Application_Cache_Manager *manager)
 
EAPI Eina_Bool ewk_application_cache_manager_entries_for_origin_del (Ewk_Application_Cache_Manager *manager, Ewk_Security_Origin *origin)
 

Detailed Description

Describes the Ewk Application Cache Manager API.

Typedef Documentation

Creates a type name for Ewk_Application_Cache_Manager

Ewk_Application_Cache_Origins_Async_Get_Cb Ewk_Application_Cache_Origins_Async_Get_Cb

Callback for ewk_application_cache_manager_origins_async_get.

Note
The origins should be freed like below code after use.
1 static void
2 _origins_get_cb(Eina_List* origins, data)
3 {
4  // ...
5 
6  void *origin;
7  EINA_LIST_FREE(origins, origin)
8  ewk_object_unref((Ewk_Object*)origin);
9 }

Function Documentation

EAPI Eina_Bool ewk_application_cache_manager_clear ( Ewk_Application_Cache_Manager manager)

Deletes all web application caches.

Parameters
managerEwk_Application_Cache_Manager object
Returns
EINA_TRUE on successful request or EINA FALSE on failure
EAPI Eina_Bool ewk_application_cache_manager_entries_for_origin_del ( Ewk_Application_Cache_Manager manager,
Ewk_Security_Origin origin 
)

Deletes web application caches for the specified origin.

Parameters
managerEwk_Application_Cache_Manager object
originsecurity origin
Returns
EINA_TRUE on successful request or EINA_FALSE on failure
EAPI void ewk_application_cache_manager_origins_async_get ( const Ewk_Application_Cache_Manager manager,
Ewk_Application_Cache_Origins_Async_Get_Cb  callback,
void *  user_data 
)

Requests for getting web application cache origins.

Parameters
managerEwk_Application_Cache_Manager object
callbackcallback to get web application cache origins
user_datauser_data will be passsed when result_callback is called
See also
Ewk_Application_Cache_Origins_Async_Get_Cb