|
18 | 18 | #include "mozilla/Services.h" |
19 | 19 | #include "mozilla/Unused.h" |
20 | 20 | #include "nsNetCID.h" |
| 21 | +#include "nsReadableUtils.h" |
21 | 22 | #include "nsServiceManagerUtils.h" |
| 23 | +#include "nsString.h" |
22 | 24 |
|
23 | 25 | class nsIURI; |
24 | 26 | class nsIPrincipal; |
@@ -54,27 +56,10 @@ namespace mozilla { class OriginAttributes; } |
54 | 56 | template <class> class nsCOMPtr; |
55 | 57 | template <typename> struct already_AddRefed; |
56 | 58 |
|
57 | | -#ifdef MOZILLA_INTERNAL_API |
58 | | -#include "nsReadableUtils.h" |
59 | | -#include "nsString.h" |
60 | | -#else |
61 | | -#include "nsStringAPI.h" |
62 | | -#endif |
63 | | - |
64 | | -#ifdef MOZILLA_INTERNAL_API |
65 | 59 | already_AddRefed<nsIIOService> do_GetIOService(nsresult *error = 0); |
66 | 60 |
|
67 | 61 | already_AddRefed<nsINetUtil> do_GetNetUtil(nsresult *error = 0); |
68 | 62 |
|
69 | | -#else |
70 | | -// Helper, to simplify getting the I/O service. |
71 | | -const nsGetServiceByContractIDWithError do_GetIOService(nsresult *error = 0); |
72 | | - |
73 | | -// An alias to do_GetIOService |
74 | | -const nsGetServiceByContractIDWithError do_GetNetUtil(nsresult *error = 0); |
75 | | - |
76 | | -#endif |
77 | | - |
78 | 63 | // private little helper function... don't call this directly! |
79 | 64 | nsresult net_EnsureIOService(nsIIOService **ios, nsCOMPtr<nsIIOService> &grip); |
80 | 65 |
|
@@ -559,15 +544,10 @@ nsresult NS_ReadInputStreamToBuffer(nsIInputStream *aInputStream, |
559 | 544 | void **aDest, |
560 | 545 | uint32_t aCount); |
561 | 546 |
|
562 | | -// external code can't see fallible_t |
563 | | -#ifdef MOZILLA_INTERNAL_API |
564 | | - |
565 | 547 | nsresult NS_ReadInputStreamToString(nsIInputStream *aInputStream, |
566 | 548 | nsACString &aDest, |
567 | 549 | uint32_t aCount); |
568 | 550 |
|
569 | | -#endif |
570 | | - |
571 | 551 | nsresult |
572 | 552 | NS_LoadPersistentPropertiesFromURISpec(nsIPersistentProperties **outResult, |
573 | 553 | const nsACString &aSpec); |
@@ -979,9 +959,4 @@ bool InScriptableRange(uint64_t val); |
979 | 959 | } // namespace net |
980 | 960 | } // namespace mozilla |
981 | 961 |
|
982 | | -// Include some function bodies for callers with external linkage |
983 | | -#ifndef MOZILLA_INTERNAL_API |
984 | | -#include "nsNetUtilInlines.h" |
985 | | -#endif |
986 | | - |
987 | 962 | #endif // !nsNetUtil_h__ |
0 commit comments