Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISocketTransportService.idl"
9 /**
10 * This is a private interface used by the internals of the networking library.
11 * It will never be frozen. Do not use it in external code.
12 */
13 [scriptable, uuid(bc5869e7-53a6-4195-8ab8-32e7116b87dd)]
15 interface nsPISocketTransportService : nsISocketTransportService
16 {
17 /**
18 * init/shutdown routines.
19 */
20 void init();
21 void shutdown();
23 /**
24 * controls whether or not the socket transport service should poke
25 * the autodialer on connection failure.
26 */
27 attribute boolean autodialEnabled;
29 /**
30 * controls the TCP sender window clamp
31 */
32 readonly attribute long sendBufferSize;
34 /**
35 * Controls whether the socket transport service is offline.
36 * Setting it offline will cause non-local socket detachment.
37 */
38 attribute boolean offline;
40 /**
41 * Controls the default timeout (in seconds) for sending keepalive probes.
42 */
43 readonly attribute long keepaliveIdleTime;
45 /**
46 * Controls the default interval (in seconds) between retrying keepalive probes.
47 */
48 readonly attribute long keepaliveRetryInterval;
50 /**
51 * Controls the default retransmission count for keepalive probes.
52 */
53 readonly attribute long keepaliveProbeCount;
54 };
56 %{C++
57 /*
58 * Network activity indicator: we send out these topics no more than every
59 * blipIntervalMilliseconds (as set by the
60 * "network.activity.blipIntervalMilliseconds" preference: if 0 no notifications
61 * are sent) if the network is currently active (i.e. we're sending/receiving
62 * data to/from the socket).
63 */
64 #define NS_NETWORK_ACTIVITY_BLIP_UPLOAD_TOPIC "network-activity-blip-upload"
65 #define NS_NETWORK_ACTIVITY_BLIP_DOWNLOAD_TOPIC "network-activity-blip-download"
67 %}