aboutsummaryrefslogtreecommitdiffstats
path: root/doc/reference/tmpl/ephy-permission-manager.sgml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/reference/tmpl/ephy-permission-manager.sgml')
-rw-r--r--doc/reference/tmpl/ephy-permission-manager.sgml88
1 files changed, 39 insertions, 49 deletions
diff --git a/doc/reference/tmpl/ephy-permission-manager.sgml b/doc/reference/tmpl/ephy-permission-manager.sgml
index 516bfac21..f62bd4de1 100644
--- a/doc/reference/tmpl/ephy-permission-manager.sgml
+++ b/doc/reference/tmpl/ephy-permission-manager.sgml
@@ -1,79 +1,77 @@
<!-- ##### SECTION Title ##### -->
-ephy-permission-manager
+EphyPermissionManager
<!-- ##### SECTION Short_Description ##### -->
-
+Sets webpages' cookie, image and popup permissions.
<!-- ##### SECTION Long_Description ##### -->
<para>
-
+The #EphyPermissionManager keeps a list of websites and their permissions. For
+example, the user may want a certain website to display images but block
+cookies and popup windows; this could correspond to three entries in the
+#EphyPermissionManager.
</para>
-
-<!-- ##### SECTION See_Also ##### -->
<para>
-
+Use ephy_permission_manager_add() to set permissions for a website,
+ephy_permission_manager_remove() to remove the permissions, and
+ephy_permission_manager_test() to test them. Note that
+ephy_permission_manager_test() may return %EPHY_PERMISSION_DEFAULT, which
+means the caller might need to find the default permission some other way.
</para>
-
-<!-- ##### MACRO EPHY_PERMISSION_MANAGER_IFACE ##### -->
<para>
-
+The #EphyPermissionManager stores a list of site-specific permissions, but not
+defaults. For popups, the default permission is determined by the GConf key
+/apps/epiphany/web/allow_popups, which in turn determines Mozilla's
+dom.disable_open_during_load preference. For cookies, the GConf key
+/apps/epiphany/web/cookie_accept determines Mozilla's
+network.cookie.cookieBehavior preference. For images, the default is determined
+by Mozilla's network.image.imageBehavior preference.
</para>
-
-@k:
-
-
-<!-- ##### MACRO EPHY_IS_PERMISSION_MANAGER_IFACE ##### -->
<para>
-
+Though the word &quot;host&quot; is used in many function descriptions, Mozilla
+does not act as one would expect. Always pass a URL to any functions which
+need have a &quot;host&quot; parameter. However, the &quot;host&quot; in an
+#EphyPermissionInfo is a simple DNS hostname.
</para>
-@k:
-
-
-<!-- ##### MACRO EPHY_TYPE_PERMISSION_INFO ##### -->
+<!-- ##### SECTION See_Also ##### -->
<para>
</para>
+<!-- ##### STRUCT EphyPermissionInfo ##### -->
+<para>
+Details a specific permission of a specific website.
+</para>
+@host: The hostname of the website to which this permission applies.
+@type: An #EphyPermissionType.
+@permission: An #EphyPermission (either allow or deny).
<!-- ##### ENUM EphyPermissionType ##### -->
<para>
-
+Determines what permission we're dealing with.
</para>
@EPT_COOKIE:
+ Permission for the website to store cookies on the user's computer.
@EPT_IMAGE:
+ Permission for the website to show images to the user.
@EPT_POPUP:
+ Permission for the website to open popup windows (using JavaScript).
<!-- ##### ENUM EphyPermission ##### -->
<para>
-
+Determines whether the website is allowed or denied access.
</para>
@EPHY_PERMISSION_ALLOWED:
+ The website is unconditionally allowed to perform the desired action.
@EPHY_PERMISSION_DENIED:
+ The website is unconditionally denied to perform the desired action.
@EPHY_PERMISSION_DEFAULT:
-
-<!-- ##### FUNCTION ephy_permission_info_new ##### -->
-<para>
-
-</para>
-
-@host:
-@type:
-@permission:
-@Returns:
-
-
-<!-- ##### FUNCTION ephy_permission_info_copy ##### -->
-<para>
-
-</para>
-
-@info:
-@Returns:
-
+ The user has not set a preference for this particular website; the
+ caller should therefore fall back to default settings.
<!-- ##### FUNCTION ephy_permission_info_free ##### -->
<para>
@@ -83,14 +81,6 @@ ephy-permission-manager
@info:
-<!-- ##### FUNCTION ephy_permission_manager_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-
<!-- ##### FUNCTION ephy_permission_manager_add ##### -->
<para>