aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-adblock.c12
-rw-r--r--lib/ephy-adblock.h8
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/ephy-adblock.c b/lib/ephy-adblock.c
index 9ba768c4b..4307737df 100644
--- a/lib/ephy-adblock.c
+++ b/lib/ephy-adblock.c
@@ -59,3 +59,15 @@ ephy_adblock_should_load (EphyAdBlock *adblock,
return TRUE;
}
+
+void
+ephy_adblock_edit_rule (EphyAdBlock *adblock,
+ const char *url,
+ gboolean allowed)
+{
+ EphyAdBlockIface *iface = EPHY_ADBLOCK_GET_IFACE (adblock);
+ if (iface->edit_rule)
+ {
+ iface->edit_rule (adblock, url, allowed);
+ }
+}
diff --git a/lib/ephy-adblock.h b/lib/ephy-adblock.h
index f102a1961..3e4bb50ba 100644
--- a/lib/ephy-adblock.h
+++ b/lib/ephy-adblock.h
@@ -66,6 +66,10 @@ struct _EphyAdBlockIface
gboolean (* should_load) (EphyAdBlock *adblock,
const char *url,
AdUriCheckType check_type);
+
+ void (* edit_rule) (EphyAdBlock *adblock,
+ const char *url,
+ gboolean allowed);
};
GType ephy_adblock_get_type (void);
@@ -74,6 +78,10 @@ gboolean ephy_adblock_should_load (EphyAdBlock *adblock,
const char *url,
AdUriCheckType check_type);
+void ephy_adblock_edit_rule (EphyAdBlock *adblock,
+ const char *url,
+ gboolean allowed);
+
G_END_DECLS
#endif