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