亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? list-warden.js

?? 現在很火的郵件客戶端軟件thunderbird的源碼
?? JS
字號:
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Google Safe Browsing. * * The Initial Developer of the Original Code is Google Inc. * Portions created by the Initial Developer are Copyright (C) 2006 * the Initial Developer. All Rights Reserved. * * Contributor(s): *   Niels Provos <niels@google.com> (original author) *   Fritz Schneider <fritz@google.com> *   Scott MacGregor <mscott@mozilla.org> * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */// A warden that knows how to register lists with a listmanager and keep them// updated if necessary.  The ListWarden also provides a simple interface to// check if a URL is evil or not.  Specialized wardens like the PhishingWarden// inherit from it.//// Classes that inherit from ListWarden are responsible for calling// enableTableUpdates or disableTableUpdates.  This usually entails// registering prefObservers and calling enable or disable in the base// class as appropriate.///** * Abtracts the checking of user/browser actions for signs of * phishing.  * * @constructor */function PROT_ListWarden() {  this.debugZone = "listwarden";  var listManager = Cc["@mozilla.org/url-classifier/listmanager;1"]                      .getService(Ci.nsIUrlListManager);  this.listManager_ = listManager;  // Once we register tables, their respective names will be listed here.  this.blackTables_ = [];  this.whiteTables_ = [];}PROT_ListWarden.IN_BLACKLIST = 0PROT_ListWarden.IN_WHITELIST = 1PROT_ListWarden.NOT_FOUND = 2/** * Tell the ListManger to keep all of our tables updated */PROT_ListWarden.prototype.enableBlacklistTableUpdates = function() {  for (var i = 0; i < this.blackTables_.length; ++i) {    this.listManager_.enableUpdate(this.blackTables_[i]);  }}/** * Tell the ListManager to stop updating our tables */PROT_ListWarden.prototype.disableBlacklistTableUpdates = function() {  for (var i = 0; i < this.blackTables_.length; ++i) {    this.listManager_.disableUpdate(this.blackTables_[i]);  }}/** * Tell the ListManager to update whitelist tables.  They may be enabled even * when other updates aren't, for performance reasons. */PROT_ListWarden.prototype.enableWhitelistTableUpdates = function() {  for (var i = 0; i < this.whiteTables_.length; ++i) {    this.listManager_.enableUpdate(this.whiteTables_[i]);  }}/** * Tell the ListManager to stop updating whitelist tables. */PROT_ListWarden.prototype.disableWhitelistTableUpdates = function() {  for (var i = 0; i < this.whiteTables_.length; ++i) {    this.listManager_.disableUpdate(this.whiteTables_[i]);  }}/** * Register a new black list table with the list manager * @param tableName - name of the table to register * @returns true if the table could be registered, false otherwise */PROT_ListWarden.prototype.registerBlackTable = function(tableName) {  var result = this.listManager_.registerTable(tableName, false);  if (result) {    this.blackTables_.push(tableName);  }  return result;}/** * Register a new white list table with the list manager * @param tableName - name of the table to register * @returns true if the table could be registered, false otherwise */PROT_ListWarden.prototype.registerWhiteTable = function(tableName) {  var result = this.listManager_.registerTable(tableName, false);  if (result) {    this.whiteTables_.push(tableName);  }  return result;}/** * Method that looks up a url on the whitelist. * * @param url The URL to check * @param callback Function with a single param: *       PROT_ListWarden.IN_BLACKLIST, PROT_ListWarden.IN_WHITELIST, *       or PROT_ListWarden.NOT_FOUND */PROT_ListWarden.prototype.isWhiteURL = function(url, callback) {  (new MultiTableQuerier(url,                         this.whiteTables_,                         [] /* no blacklists */,                         callback)).run();}/** * Method that looks up a url in both the white and black lists. * * If there is conflict, the white list has precedence over the black list. * * This is tricky because all database queries are asynchronous.  So we need * to chain together our checks against white and black tables.  We use * MultiTableQuerier (see below) to manage this. * * @param msgURI uri corresponding to the message the url came from * @param aFailsStaticTests boolean result for whether the url failed our static tests * @param url URL to look up * @param callback Function with a single param: *       PROT_ListWarden.IN_BLACKLIST, PROT_ListWarden.IN_WHITELIST, *       or PROT_ListWarden.NOT_FOUND */PROT_ListWarden.prototype.isEvilURL = function(msgURI, aFailsStaticTests, url, callback) {  var evilCallback = BindToObject(callback,                                  null,                                  msgURI,                                  aFailsStaticTests,                                  url);  (new MultiTableQuerier(url,                         this.whiteTables_,                         this.blackTables_,                         evilCallback)).run();}/** * This class helps us query multiple tables even though each table check * is asynchronous.  It provides callbacks for each listManager lookup * and decides whether we need to continue querying or not.  After * instantiating the method, use run() to invoke. * * @param url String The url to check * @param whiteTables Array of strings with each white table name * @param blackTables Array of strings with each black table name * @param callback Function to call with result  *       PROT_ListWarden.IN_BLACKLIST, PROT_ListWarden.IN_WHITELIST, *       or PROT_ListWarden.NOT_FOUND */function MultiTableQuerier(url, whiteTables, blackTables, callback) {  this.debugZone = "multitablequerier";  this.url_ = url;  this.whiteTables_ = whiteTables;  this.blackTables_ = blackTables;  this.whiteIdx_ = 0;  this.blackIdx_ = 0;  this.callback_ = callback;  this.listManager_ = Cc["@mozilla.org/url-classifier/listmanager;1"]                      .getService(Ci.nsIUrlListManager);}/** * We first query the white tables in succession.  If any contain * the url, we stop.  If none contain the url, we query the black tables * in succession.  If any contain the url, we call callback and * stop.  If none of the black tables contain the url, then we just stop * (i.e., it's not black url). */MultiTableQuerier.prototype.run = function() {  var whiteTable = this.whiteTables_[this.whiteIdx_];  var blackTable = this.blackTables_[this.blackIdx_];  if (whiteTable) {    //G_Debug(this, "Looking in whitetable: " + whiteTable);    ++this.whiteIdx_;    this.listManager_.safeExists(whiteTable, this.url_,                                 BindToObject(this.whiteTableCallback_,                                              this));  } else if (blackTable) {    //G_Debug(this, "Looking in blacktable: " + blackTable);    ++this.blackIdx_;    this.listManager_.safeExists(blackTable, this.url_,                                 BindToObject(this.blackTableCallback_,                                              this));  } else {    // No tables left to check, so we quit.    G_Debug(this, "Not found in any tables: " + this.url_);    this.callback_(PROT_ListWarden.NOT_FOUND);    // Break circular ref to callback.    this.callback_ = null;    this.listManager_ = null;  }}/** * After checking a white table, we return here.  If the url is found, * we can stop.  Otherwise, we call run again. */MultiTableQuerier.prototype.whiteTableCallback_ = function(isFound) {  //G_Debug(this, "whiteTableCallback_: " + isFound);  if (!isFound)    this.run();  else {    G_Debug(this, "Found in whitelist: " + this.url_)    this.callback_(PROT_ListWarden.IN_WHITELIST);    // Break circular ref to callback.    this.callback_ = null;    this.listManager_ = null;  }}/** * After checking a black table, we return here.  If the url is found, * we can call the callback and stop.  Otherwise, we call run again. */MultiTableQuerier.prototype.blackTableCallback_ = function(isFound) {  //G_Debug(this, "blackTableCallback_: " + isFound);  if (!isFound) {    this.run();  } else {    // In the blacklist, must be an evil url.    G_Debug(this, "Found in blacklist: " + this.url_)    this.callback_(PROT_ListWarden.IN_BLACKLIST);    // Break circular ref to callback.    this.callback_ = null;    this.listManager_ = null;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲 欧美综合在线网络| 久久青草欧美一区二区三区| 亚洲欧美日韩久久| 不卡的av电影在线观看| 中文字幕在线不卡一区二区三区| 国产精品456| 国产目拍亚洲精品99久久精品| 国产精品77777| 亚洲欧洲国产专区| 精品久久一区二区三区| 久草在线在线精品观看| 欧美极品aⅴ影院| 91色九色蝌蚪| 日韩成人精品在线观看| 26uuu国产日韩综合| 国产成人av电影在线| 亚洲天堂免费在线观看视频| 欧美亚一区二区| 蜜臀va亚洲va欧美va天堂| 久久综合久久久久88| av电影在线观看一区| 亚洲国产精品一区二区尤物区| 91精品欧美福利在线观看| 国产一区免费电影| 亚洲六月丁香色婷婷综合久久| 欧美无人高清视频在线观看| 麻豆高清免费国产一区| 国产精品色眯眯| 欧美日韩一二三区| 国产精品亚洲午夜一区二区三区| 国产精品色噜噜| 91精品国产全国免费观看| 国产乱码精品1区2区3区| 亚洲综合男人的天堂| 精品国产伦一区二区三区观看方式 | 久久精品国产一区二区| 国产欧美精品一区二区色综合| 一本色道久久综合精品竹菊| 免费在线看成人av| 亚洲欧洲色图综合| 欧美一区二区三区白人| 97精品超碰一区二区三区| 精品一区二区三区免费视频| 成人永久aaa| 五月婷婷色综合| 中文字幕一区二区在线播放 | 亚洲自拍另类综合| 久久久久久久久久美女| 欧美伊人精品成人久久综合97| 精品一区二区三区的国产在线播放 | 国产传媒欧美日韩成人| 亚洲国产乱码最新视频| 久久久久久久久久久久久女国产乱 | 亚洲激情av在线| 久久新电视剧免费观看| 欧美色欧美亚洲另类二区| 成人黄色一级视频| 国产自产高清不卡| 日韩电影免费一区| 亚洲曰韩产成在线| 国产精品理论在线观看| 精品国产乱码久久久久久久久| 欧美在线观看视频在线| 99久久久国产精品免费蜜臀| 韩国成人在线视频| 美女视频黄频大全不卡视频在线播放| 自拍偷拍欧美精品| 日本一区二区免费在线观看视频| 欧美大度的电影原声| 3atv在线一区二区三区| 欧美三级韩国三级日本一级| 色综合亚洲欧洲| 91在线一区二区| av男人天堂一区| 99久久伊人网影院| 成人成人成人在线视频| 懂色av中文一区二区三区| 国产主播一区二区三区| 国产一区二三区好的| 国精品**一区二区三区在线蜜桃| 久久国产精品第一页| 久久国产福利国产秒拍| 蜜臀av国产精品久久久久| 日韩激情中文字幕| 蜜桃免费网站一区二区三区| 久久精品国产澳门| 精品一区二区免费视频| 国产一区二区三区四区五区美女| 久久99精品久久只有精品| 国产一区二区不卡在线| 国产精品 日产精品 欧美精品| 国产成人午夜片在线观看高清观看| 国产精品原创巨作av| 国产成人综合在线播放| 成人精品高清在线| 欧美影院精品一区| 9191成人精品久久| 精品av综合导航| 国产午夜精品一区二区| 亚洲人一二三区| 午夜一区二区三区视频| 欧美三级电影在线看| 欧美日韩国产区一| 精品sm捆绑视频| 国产精品美女久久福利网站| 一区二区三区在线免费播放| 亚洲福利视频一区二区| 免费观看成人鲁鲁鲁鲁鲁视频| 精品一区二区av| 成人黄色一级视频| 欧美美女一区二区在线观看| 精品国产乱码久久久久久久久| 国产精品久久久久影院| 亚洲国产成人高清精品| 久久99久久99小草精品免视看| 国产成人免费xxxxxxxx| 91久久一区二区| 日韩美女视频在线| |精品福利一区二区三区| 亚洲成av人片| 成人黄色免费短视频| 欧美日韩国产经典色站一区二区三区| 精品国产乱码久久久久久久久| 日韩毛片高清在线播放| 日韩精品福利网| 99国内精品久久| 欧美成人aa大片| 亚洲午夜免费视频| 懂色一区二区三区免费观看| 欧美日韩色一区| 国产精品美女久久久久高潮| 日韩成人一区二区| 色综合天天综合| wwwwww.欧美系列| 亚洲综合免费观看高清完整版在线| 久久99国产精品尤物| 激情图片小说一区| 欧美色倩网站大全免费| 中文字幕在线播放不卡一区| 青娱乐精品视频在线| 91福利视频在线| 久久影视一区二区| 日精品一区二区| 97久久超碰国产精品电影| 久久亚洲精品小早川怜子| 天天色图综合网| 色婷婷激情一区二区三区| 久久亚洲精华国产精华液| 日韩高清在线一区| 欧美亚洲国产bt| 亚洲欧美另类小说| 大胆亚洲人体视频| 久久影院电视剧免费观看| 日本在线不卡视频| 欧美系列日韩一区| 亚洲黄网站在线观看| 岛国av在线一区| 国产亚洲欧美在线| 精品综合免费视频观看| 91麻豆精品国产自产在线观看一区| 亚洲欧洲av在线| 国产精品888| 亚洲国产精品高清| 国产精品亚洲一区二区三区妖精 | 91老师国产黑色丝袜在线| 国产亚洲精品久| 韩国欧美国产一区| 久久蜜桃av一区二区天堂 | 欧美天堂一区二区三区| 亚洲欧美电影院| 日本丰满少妇一区二区三区| 亚洲美女一区二区三区| 日本韩国一区二区| 一区二区久久久久久| 欧美日韩中字一区| 日韩国产欧美在线观看| 欧美精品在线观看一区二区| 天天色综合成人网| 日韩精品一区二区三区在线| 麻豆免费精品视频| 久久综合九色综合97_久久久| 韩国女主播一区二区三区| 国产欧美日韩久久| 不卡的电影网站| 亚洲乱码一区二区三区在线观看| 91免费看`日韩一区二区| 一区二区三区视频在线观看| 欧美日韩另类一区| 麻豆精品久久精品色综合| 久久婷婷成人综合色| 成人黄色国产精品网站大全在线免费观看| 欧美国产一区二区在线观看| 91视频一区二区三区| 亚洲午夜一区二区| 精品国精品自拍自在线| 国产成人精品三级| 一区二区三区在线不卡| 欧美日韩国产另类不卡| 国内久久精品视频| 自拍偷在线精品自拍偷无码专区|