[libhttpseverywhere] context: add methods stubs for hostbased ignoring



commit 645f95b91ef3a3ae8597b1027f877548cd126de7
Author: grindhold <grindhold gmx net>
Date:   Sun Mar 19 12:31:48 2017 +0100

    context: add methods stubs for hostbased ignoring

 src/context.vala |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/context.vala b/src/context.vala
index 5274b7b..802f42c 100644
--- a/src/context.vala
+++ b/src/context.vala
@@ -25,6 +25,9 @@
  * to convert http-URLs into https-URLs.
  */
 namespace HTTPSEverywhere {
+    public errordomain ContextError {
+        NOT_IMPLEMENTED
+    }
 
     private const string rulesets_file = "rulesets.json";
 
@@ -235,6 +238,20 @@ namespace HTTPSEverywhere {
         }
 
         /**
+         * Tells this context to ignore the given host
+         */
+        public void ignore_host(string host) {
+            throw new ContextError.NOT_IMPLEMENTED("Context.ignore_host ist not implemented yet.");
+        }
+
+        /**
+         * Tells this context to check for a previously ignored host again
+         */
+        public void unignore_host(string host) {
+            throw new ContextError.NOT_IMPLEMENTED("Context.unignore_host ist not implemented yet.");
+        }
+
+        /**
          * Loads all possible targets into memory
          */
         private void load_targets() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]