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: #include "nsISupports.idl" michael@0: michael@0: [builtinclass, uuid(24fdfcbe-54cb-4997-8392-3c476126ea3b)] michael@0: interface nsIDashboardEventNotifier : nsISupports michael@0: { michael@0: /* These methods are called to register a websocket event with the dashboard michael@0: * michael@0: * A host is identified by the (aHost, aSerial) pair. michael@0: * aHost: the host's name: example.com michael@0: * aSerial: a number that uniquely identifies the websocket michael@0: * michael@0: * aEncrypted: if the connection is encrypted michael@0: * aLength: the length of the message in bytes michael@0: */ michael@0: void addHost(in ACString aHost, in unsigned long aSerial, in boolean aEncrypted); michael@0: void removeHost(in ACString aHost, in unsigned long aSerial); michael@0: void newMsgSent(in ACString aHost, in unsigned long aSerial, in unsigned long aLength); michael@0: void newMsgReceived(in ACString aHost, in unsigned long aSerial, in unsigned long aLength); michael@0: };