michael@0: // -*- Mode: javascript; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: // This Source Code Form is subject to the terms of the Mozilla Public michael@0: // License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: // file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: this.EXPORTED_SYMBOLS = ["RemoteSecurityUI"]; michael@0: michael@0: const Ci = Components.interfaces; michael@0: const Cc = Components.classes; michael@0: const Cu = Components.utils; michael@0: michael@0: Cu.import("resource://gre/modules/XPCOMUtils.jsm"); michael@0: michael@0: function RemoteSecurityUI() michael@0: { michael@0: this._SSLStatus = null; michael@0: this._state = 0; michael@0: } michael@0: michael@0: RemoteSecurityUI.prototype = { michael@0: QueryInterface: XPCOMUtils.generateQI([Ci.nsISSLStatusProvider, Ci.nsISecureBrowserUI]), michael@0: michael@0: // nsISSLStatusProvider michael@0: get SSLStatus() { return this._SSLStatus; }, michael@0: michael@0: // nsISecureBrowserUI michael@0: get state() { return this._state; }, michael@0: get tooltipText() { return ""; }, michael@0: michael@0: _update: function (aStatus, aState) { michael@0: this._SSLStatus = aStatus; michael@0: this._state = aState; michael@0: } michael@0: };