Advertisement
Guest User

Untitled

a guest
Jul 25th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4.  
  5. #include "nsISupports.idl"
  6. #include "nsIDashboardEventNotifier.idl"
  7.  
  8. interface nsIURI;
  9.  
  10. /* A JavaScript callback function that takes a JSON as its parameter.
  11. * The returned JSON contains arrays with data
  12. */
  13. [scriptable, function, uuid(19d7f24f-a95a-4fd9-87e2-d96e9e4b1f6d)]
  14. interface NetDashboardCallback : nsISupports
  15. {
  16. void onDashboardDataAvailable(in jsval data);
  17. };
  18.  
  19. /* The dashboard service.
  20. * The async API returns JSONs, which hold arrays with the required info.
  21. * Only one request of each type may be pending at any time.
  22. */
  23. [scriptable, uuid(c79eb3c6-091a-45a6-8544-5a8d1ab79537)]
  24. interface nsIDashboard : nsISupports
  25. {
  26. /* Arrays: host, port, tcp, active, socksent, sockreceived
  27. * Values: sent, received */
  28. void requestSockets(in NetDashboardCallback cb);
  29.  
  30. /* Arrays: host, port, spdy, ssl
  31. * Array of arrays: active, idle */
  32. void requestHttpConnections(in NetDashboardCallback cb);
  33.  
  34. /* Arrays: hostport, encrypted, msgsent, msgreceived, sentsize, receivedsize */
  35. void requestWebsocketConnections(in NetDashboardCallback cb);
  36.  
  37. /* Arrays: hostname, family, hostaddr, expiration */
  38. void requestDNSInfo(in NetDashboardCallback cb);
  39.  
  40. /* When true, the service will log websocket events */
  41. attribute boolean enableLogging;
  42.  
  43. /* Request Proxy Settings Information for URL */
  44. void requestProxySettings(in nsIURI uri, in NetDashboardCallback cb);
  45. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement