WebBrowser/SafeBrowsing/SafeBrowsingAPIClient.py

changeset 6230
77a1b22c8a1f
parent 6048
82ad8ec9548c
child 6233
a64b986abb54
--- a/WebBrowser/SafeBrowsing/SafeBrowsingAPIClient.py	Tue Apr 10 19:39:13 2018 +0200
+++ b/WebBrowser/SafeBrowsing/SafeBrowsingAPIClient.py	Tue Apr 10 19:40:37 2018 +0200
@@ -88,6 +88,10 @@
         reply.deleteLater()
         return res
     
+    #######################################################################
+    ## Methods below implement the 'Update API (v4)'
+    #######################################################################
+    
     def getThreatsUpdate(self, clientStates):
         """
         Public method to fetch hash prefix updates for the given threat list.
@@ -254,6 +258,16 @@
         """
         return self.__nextRequestNoSoonerThan
     
+    #######################################################################
+    ## Methods below implement the 'Lookup API (v4)'
+    #######################################################################
+    
+    # TODO: implement the Lookup API (including temporary caching)
+    
+    #######################################################################
+    ## Methods below implement global (class wide) functionality
+    #######################################################################
+    
     @classmethod
     def getThreatMessage(cls, threatType):
         """

eric ide

mercurial