1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/modules/RemoteSecurityUI.jsm Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +// -*- Mode: javascript; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 +// This Source Code Form is subject to the terms of the Mozilla Public 1.6 +// License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +// file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +this.EXPORTED_SYMBOLS = ["RemoteSecurityUI"]; 1.10 + 1.11 +const Ci = Components.interfaces; 1.12 +const Cc = Components.classes; 1.13 +const Cu = Components.utils; 1.14 + 1.15 +Cu.import("resource://gre/modules/XPCOMUtils.jsm"); 1.16 + 1.17 +function RemoteSecurityUI() 1.18 +{ 1.19 + this._SSLStatus = null; 1.20 + this._state = 0; 1.21 +} 1.22 + 1.23 +RemoteSecurityUI.prototype = { 1.24 + QueryInterface: XPCOMUtils.generateQI([Ci.nsISSLStatusProvider, Ci.nsISecureBrowserUI]), 1.25 + 1.26 + // nsISSLStatusProvider 1.27 + get SSLStatus() { return this._SSLStatus; }, 1.28 + 1.29 + // nsISecureBrowserUI 1.30 + get state() { return this._state; }, 1.31 + get tooltipText() { return ""; }, 1.32 + 1.33 + _update: function (aStatus, aState) { 1.34 + this._SSLStatus = aStatus; 1.35 + this._state = aState; 1.36 + } 1.37 +};