gecko-dev/netwerk/protocol/ftp
Nicholas Nethercote 9252435548 Bug 1410794 (attempt 2) - Change some |string| occurrences in nsIPrefBranch.idl to |ACString|. r=erahm.
This makes the code nicer. In particular, it removes many getter_Copies()
calls. The patch also converts a lot of nsCStrings to nsAutoCString, which will
avoid heap allocation in the common case.

The patch also renames PREF_CopyCharPref() as PREF_GetCStringPref(), because
it's actually getting a string, not a char, and that matches the existing
GetCString() and GetDefaultCString() methods. Correspondingly, it also renames
PREF_SetCharPref() as PREF_SetCStringPref().

The |aPrefName| arguments in nsIPrefBranch.idl remain as |string| because they
almost always involve passing in C string literals, and passing "foo" is much
nicer than passing NS_LITERAL_CSTRING("foo").

It's worth noting that early versions of this patch used |AUTF8String| instead
of |ACString|. But it turns out that libpref stores prefs internally as Latin1.
And |ACString| is compatible with Latin1 but |AUTF8String| isn't, because
non-ASCII Latin1 strings are not valid UTF-8!

MozReview-Commit-ID: D3f7a1Vl1oE

--HG--
extra : rebase_source : e6e4b15d6d210cfd93686f96400281f02bd1d06b
2017-10-27 10:30:33 +11:00
..
doc
test/frametest
FTPChannelChild.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
FTPChannelChild.h Bug 1343741 - Label runnables in nsBaseChannel, r=mayhemer 2017-07-05 00:47:00 +02:00
FTPChannelParent.cpp Bug 1399467 - Remove assertion FTPChannelParent that is triggered by bad ftp URL r=michal 2017-10-12 21:51:58 +02:00
FTPChannelParent.h Bug 1339713 - Use IPCStream everywhere - part 2 - PFTPChannel, r=smaug 2017-03-09 14:09:31 +01:00
ftpCore.h
moz.build Bug 1335181 - add BUG_COMPONENT to netwerk/* and dom/network/* files. r=mcmanus 2017-02-02 06:33:47 -05:00
nsFTPChannel.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsFTPChannel.h Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsFtpConnectionThread.cpp Bug 1410794 (attempt 2) - Change some |string| occurrences in nsIPrefBranch.idl to |ACString|. r=erahm. 2017-10-27 10:30:33 +11:00
nsFtpConnectionThread.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsFtpControlConnection.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsFtpControlConnection.h Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsFtpProtocolHandler.cpp Bug 1404198: Part 2c - Switch to NS_NewTimer* in necko. r=njn 2017-10-15 23:12:02 -07:00
nsFtpProtocolHandler.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsIFTPChannel.idl
nsIFTPChannelParentInternal.idl Bug 1122566 - Make e10s behave the same as single-process in case of an ftp:// error. r=bagder 2016-05-02 09:38:00 -04:00
PFTPChannel.ipdl Bug 1359005 - Cleanup the use of PBlob in StructuredCloneHolder - part 1 - protocols, r=smaug 2017-05-23 07:49:40 +02:00