Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–2890 unchanged (2890 lines)
2891 if (!gNeckoChild->SendPAltDataOutputStreamConstructor(
2892 stream, nsCString(aType), aPredictedSize, Nothing(),
2893 Some(WrapNotNull(this)))) {
2894 return NS_ERROR_FAILURE;
2895 }
2896
2897 stream->AddIPDLReference();
2898 stream.forget(_retval);
2899 return NS_OK;
2900}
2901
2902NS_IMETHODIMP
2903HttpChannelChild::GetCacheEntryWriteHandle(nsICacheEntryWriteHandle** _retval) {
…lines 2904–2916 unchanged (13 lines)
2917
2918 if (!gNeckoChild->SendPCacheEntryWriteHandleConstructor(handle,
2919 WrapNotNull(this))) {
2920 return NS_ERROR_FAILURE;
2921 }
2922
2923 handle->AddIPDLReference();
2924 handle.forget(_retval);
2925 return NS_OK;
2926}
2927
2928NS_IMETHODIMP
2929HttpChannelChild::OpenAlternativeOutputStream(const nsACString& aType,
…lines 2930–3583 unchanged (654 lines)

After

…lines 1–2883 unchanged (2883 lines)
2884 }
2885 if (static_cast<ContentChild*>(gNeckoChild->Manager())->IsShuttingDown()) {
2886 return NS_ERROR_NOT_AVAILABLE;
2887 }
2888
2889 RefPtr<AltDataOutputStreamChild> stream = new AltDataOutputStreamChild();
2890 stream->AddIPDLReference();
2891
2892 if (!gNeckoChild->SendPAltDataOutputStreamConstructor(
2893 stream, nsCString(aType), aPredictedSize, Nothing(),
2894 Some(WrapNotNull(this)))) {
2895 return NS_ERROR_FAILURE;
2896 }
…lines 2897–2910 unchanged (14 lines)
2911 }
2912
2913 nsCOMPtr<nsISerialEventTarget> neckoTarget = GetNeckoTarget();
2914 MOZ_ASSERT(neckoTarget);
2915
2916 RefPtr<CacheEntryWriteHandleChild> handle = new CacheEntryWriteHandleChild();
2917 handle->AddIPDLReference();
2918
2919 if (!gNeckoChild->SendPCacheEntryWriteHandleConstructor(handle,
2920 WrapNotNull(this))) {
2921 return NS_ERROR_FAILURE;
2922 }
2923
…lines 2924–3583 unchanged (660 lines)

Before

translation_unit
comment "/* This Source Code Form is subject to the terms of the Mozi"...
comment "// HttpLog.h should generally be included first"
preproc_include
#include "#include"
string_literal
" "\""
string_content "HttpLog.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsError.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsHttp.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsICacheEntry.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/BasePrincipal.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/PerfStats.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/ContentChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/DocGroup.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/ServiceWorkerUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/BrowserChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/LinkStyle.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/ReferrerInfo.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/extensions/StreamFilterParent.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ipc/IPCStreamUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/NeckoChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/HttpChannelChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/CacheEntryWriteHandleChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/PBackgroundDataBridge.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/UrlClassifierCommon.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/UrlClassifierFeatureFactory.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "AltDataOutputStreamChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "CookieServiceChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "HttpBackgroundChannelChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "NetworkMarker.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsCOMPtr.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsContentPolicyUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsDOMNavigationTiming.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsISocketTransport.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsIThreadRetargetableStreamListener.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsIStreamTransportService.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsStringStream.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsHttpChannel.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsHttpHandler.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsQueryObject.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsNetUtil.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsSerializationHelper.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/glean/NetwerkProtocolHttpMetrics.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/PerformanceStorage.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/glean/NetwerkMetrics.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ipc/InputStreamUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ipc/URIUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ipc/BackgroundUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/DNS.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/SocketProcessBridgeChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ScopeExit.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/StaticPrefs_network.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/StoragePrincipalHelper.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "SerializedLoadContext.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsInputStreamPump.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsContentSecurityManager.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsICompressConvStats.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/Document.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsIScriptError.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsISerialEventTarget.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsRedirectHistoryEntry.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsSocketTransportService2.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsStreamUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsThreadUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsCORSListenerProxy.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsIOService.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<functional>"
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "mozilla"
:: "::"
identifier "dom"
; ";"
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "mozilla"
:: "::"
identifier "ipc"
; ";"
namespace_definition
namespace "namespace"
nested_namespace_specifier
namespace_identifier "mozilla"
:: "::"
namespace_identifier "net"
declaration_list
{ "{"
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild"
comment "//----------------------------------------------------------"...
function_definition (+228 nodes collapsed)
function_definition (+433 nodes collapsed)
function_definition (+51 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsISupports"
comment "//----------------------------------------------------------"...
expression_statement
call_expression
identifier "NS_IMPL_ADDREF"
argument_list
( "("
identifier "HttpChannelChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_IMETHODIMP_"
argument_list
( "("
identifier "MozExternalRefCountType"
) ")"
; ""
function_definition (+437 nodes collapsed)
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_BEGIN"
argument_list
( "("
identifier "HttpChannelChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIRequest"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIHttpChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIHttpChannelInternal"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY_CONDITIONAL"
argument_list
( "("
identifier "nsICacheInfoChannel"
, ","
unary_expression
! "!"
call_expression
field_expression
identifier "mMultiPartID"
. "."
field_identifier "isSome"
argument_list
( "("
) ")"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIResumableChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsISupportsPriority"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIClassOfService"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIProxiedChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsITraceableChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIAsyncVerifyRedirectCallback"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIChildChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIHttpChannelChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY_CONDITIONAL"
argument_list
( "("
identifier "nsIMultiPartChannel"
, ","
call_expression
field_expression
identifier "mMultiPartID"
. "."
field_identifier "isSome"
argument_list
( "("
) ")"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY_CONDITIONAL"
argument_list
( "("
identifier "nsIThreadRetargetableRequest"
, ","
unary_expression
! "!"
call_expression
field_expression
identifier "mMultiPartID"
. "."
field_identifier "isSome"
argument_list
( "("
) ")"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY_CONCRETE"
argument_list
( "("
identifier "HttpChannelChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_END_INHERITING"
argument_list
( "("
identifier "HttpBaseChannel"
) ")"
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::PHttpChannelChild"
comment "//----------------------------------------------------------"...
; ""
function_definition (+96 nodes collapsed)
function_definition (+172 nodes collapsed)
function_definition (+98 nodes collapsed)
function_definition (+177 nodes collapsed)
function_definition (+185 nodes collapsed)
function_definition (+1125 nodes collapsed)
function_definition (+107 nodes collapsed)
function_definition (+180 nodes collapsed)
function_definition (+474 nodes collapsed)
function_definition (+206 nodes collapsed)
function_definition (+703 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+157 nodes collapsed)
function_definition (+159 nodes collapsed)
function_definition (+156 nodes collapsed)
function_definition (+179 nodes collapsed)
function_definition (+375 nodes collapsed)
function_definition (+146 nodes collapsed)
function_definition (+173 nodes collapsed)
function_definition (+664 nodes collapsed)
function_definition (+164 nodes collapsed)
function_definition (+108 nodes collapsed)
comment "// We want to inspect all upgradable mixed content loads"
comment "// (i.e., loads point to HTTP from an HTTPS page), for"
comment "// resources that stem from audio, video and img elements."
comment "// Of those, we want to measure which succceed and which fai"...
comment "// Some double negatives, but we check the following:exempt "...
comment "// 1) Request was upgraded as mixed passive content"
comment "// 2) Request _could_ have been upgraded as mixed passive co"...
comment "// had been set and Request wasn't upgraded by any other mea"...
function_definition (+348 nodes collapsed)
function_definition (+499 nodes collapsed)
function_definition (+133 nodes collapsed)
function_definition (+121 nodes collapsed)
function_definition (+109 nodes collapsed)
comment "// We need to have an implementation of this function just s"...
comment "// all references to mCallOnResume of type HttpChannelChild:"...
comment "// to set a member function ptr to a base class function."
function_definition (+37 nodes collapsed)
function_definition (+138 nodes collapsed)
function_definition (+174 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition (+29 nodes collapsed)
function_definition (+137 nodes collapsed)
function_definition (+21 nodes collapsed)
function_definition (+98 nodes collapsed)
function_definition (+201 nodes collapsed)
function_definition (+241 nodes collapsed)
function_definition (+75 nodes collapsed)
function_definition (+1074 nodes collapsed)
function_definition (+270 nodes collapsed)
function_definition (+301 nodes collapsed)
function_definition (+517 nodes collapsed)
function_definition (+284 nodes collapsed)
function_definition (+219 nodes collapsed)
function_definition (+138 nodes collapsed)
function_definition (+155 nodes collapsed)
function_definition (+237 nodes collapsed)
comment "// Completes the redirect and cleans up the old channel."
function_definition (+138 nodes collapsed)
function_definition (+105 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIChildChannel"
comment "//----------------------------------------------------------"...
function_definition (+576 nodes collapsed)
function_definition (+271 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIAsyncVerifyRedirectCallback"
comment "//----------------------------------------------------------"...
function_definition (+562 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIRequest"
comment "//----------------------------------------------------------"...
function_definition (+29 nodes collapsed)
function_definition (+27 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition (+326 nodes collapsed)
function_definition (+119 nodes collapsed)
function_definition (+282 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIChannel"
comment "//----------------------------------------------------------"...
function_definition (+52 nodes collapsed)
function_definition (+337 nodes collapsed)
function_definition (+645 nodes collapsed)
comment "// Assigns an nsISerialEventTarget to our IPDL actor so that"...
comment "// sent to the correct DocGroup/TabGroup."
function_definition (+33 nodes collapsed)
function_definition (+80 nodes collapsed)
function_definition (+100 nodes collapsed)
function_definition (+1618 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIHttpChannel"
comment "//----------------------------------------------------------"...
function_definition (+184 nodes collapsed)
function_definition (+159 nodes collapsed)
function_definition (+23 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition
type_identifier "NS_IMETHODIMP"
function_declarator
qualified_identifier
namespace_identifier "HttpChannelChild"
:: "::"
identifier "UpgradeToSecure"
parameter_list
( "("
) ")"
compound_statement
{ "{"
comment "// disabled until/unless addons run in child or something el"...
return_statement
return "return"
identifier "NS_ERROR_NOT_IMPLEMENTED"
; ";"
} "}"
function_definition (+28 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIHttpChannelInternal"
comment "//----------------------------------------------------------"...
function_definition (+25 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsICacheInfoChannel"
comment "//----------------------------------------------------------"...
function_definition (+70 nodes collapsed)
function_definition (+62 nodes collapsed)
function_definition (+46 nodes collapsed)
function_definition (+30 nodes collapsed)
function_definition (+45 nodes collapsed)
function_definition (+49 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+33 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+73 nodes collapsed)
function_definition (+27 nodes collapsed)
function_definition (+48 nodes collapsed)
expression_statement
call_expression
identifier "NS_IMPL_ADDREF"
argument_list
( "("
identifier "CacheEntryWriteHandleChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_IMPL_RELEASE"
argument_list
( "("
identifier "CacheEntryWriteHandleChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_BEGIN"
argument_list
( "("
identifier "CacheEntryWriteHandleChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsISupports"
) ")"
; ""
ERROR
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsICacheEntryWriteHandle"
) ")"
identifier "NS_INTERFACE_MAP_END"
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "CacheEntryWriteHandleChild"
:: "::"
identifier "AddIPDLReference"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "AddRef"
argument_list
( "("
) ")"
; ";"
} "}"
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "CacheEntryWriteHandleChild"
:: "::"
identifier "ReleaseIPDLReference"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "Release"
argument_list
( "("
) ")"
; ";"
} "}"
function_definition
type_identifier "NS_IMETHODIMP"
function_declarator (+27 nodes collapsed)
compound_statement
{ "{"
expression_statement
call_expression
identifier "MOZ_ASSERT"
argument_list
( "("
call_expression
identifier "NS_IsMainThread"
argument_list
( "("
) ")"
, ","
string_literal
" "\""
string_content "Main thread only"
" "\""
) ")"
; ";"
if_statement
if "if"
condition_clause
( "("
unary_expression
! "!"
call_expression
identifier "CanSend"
argument_list
( "("
) ")"
) ")"
compound_statement
{ "{"
return_statement
return "return"
identifier "NS_ERROR_NOT_AVAILABLE"
; ";"
} "}"
if_statement (+40 nodes collapsed)
declaration
template_type
type_identifier "RefPtr"
template_argument_list
< "<"
type_descriptor
type_identifier "AltDataOutputStreamChild"
> ">"
init_declarator
identifier "stream"
= "="
new_expression
new "new"
type_identifier "AltDataOutputStreamChild"
argument_list
( "("
) ")"
; ";"
if_statement (+50 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "stream"
-> "->"
field_identifier "AddIPDLReference"
argument_list
( "("
) ")"
; ";"
expression_statement
call_expression
field_expression
identifier "stream"
. "."
field_identifier "forget"
argument_list
( "("
identifier "_retval"
) ")"
; ";"
return_statement
return "return"
identifier "NS_OK"
; ";"
} "}"
function_definition
type_identifier "NS_IMETHODIMP"
function_declarator
qualified_identifier
namespace_identifier "HttpChannelChild"
:: "::"
identifier "GetCacheEntryWriteHandle"
parameter_list
( "("
parameter_declaration
type_identifier "nsICacheEntryWriteHandle"
pointer_declarator
* "*"
pointer_declarator
* "*"
identifier "_retval"
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "MOZ_ASSERT"
argument_list
( "("
call_expression
identifier "NS_IsMainThread"
argument_list
( "("
) ")"
, ","
string_literal
" "\""
string_content "Main thread only"
" "\""
) ")"
; ";"
if_statement
if "if"
condition_clause
( "("
unary_expression
! "!"
call_expression
identifier "CanSend"
argument_list
( "("
) ")"
) ")"
compound_statement
{ "{"
return_statement
return "return"
identifier "NS_ERROR_NOT_AVAILABLE"
; ";"
} "}"
if_statement (+40 nodes collapsed)
declaration
template_type
type_identifier "nsCOMPtr"
template_argument_list
< "<"
type_descriptor
type_identifier "nsISerialEventTarget"
> ">"
init_declarator
identifier "neckoTarget"
= "="
call_expression
identifier "GetNeckoTarget"
argument_list
( "("
) ")"
; ";"
expression_statement
call_expression
identifier "MOZ_ASSERT"
argument_list
( "("
identifier "neckoTarget"
) ")"
; ";"
declaration
template_type
type_identifier "RefPtr"
template_argument_list
< "<"
type_descriptor
type_identifier "CacheEntryWriteHandleChild"
> ">"
init_declarator
identifier "handle"
= "="
new_expression
new "new"
type_identifier "CacheEntryWriteHandleChild"
argument_list
( "("
) ")"
; ";"
if_statement (+30 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "handle"
-> "->"
field_identifier "AddIPDLReference"
argument_list
( "("
) ")"
; ";"
expression_statement
call_expression
field_expression
identifier "handle"
. "."
field_identifier "forget"
argument_list
( "("
identifier "_retval"
) ")"
; ";"
return_statement
return "return"
identifier "NS_OK"
; ";"
} "}"
function_definition (+226 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+99 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIResumableChannel"
comment "//----------------------------------------------------------"...
function_definition (+71 nodes collapsed)
comment "// GetEntityID is shared in HttpBaseChannel"
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsISupportsPriority"
comment "//----------------------------------------------------------"...
function_definition (+102 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIClassOfService"
comment "//----------------------------------------------------------"...
function_definition (+112 nodes collapsed)
function_definition (+99 nodes collapsed)
function_definition (+91 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+89 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIProxiedChannel"
comment "//----------------------------------------------------------"...
function_definition (+27 nodes collapsed)
function_definition (+25 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIHttpChannelChild"
comment "//----------------------------------------------------------"...
function_definition (+27 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+87 nodes collapsed)
function_definition (+134 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIMuliPartChannel"
comment "//----------------------------------------------------------"...
function_definition (+76 nodes collapsed)
function_definition (+60 nodes collapsed)
function_definition (+45 nodes collapsed)
function_definition (+45 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIThreadRetargetableRequest"
comment "//----------------------------------------------------------"...
function_definition (+308 nodes collapsed)
function_definition (+41 nodes collapsed)
function_definition (+79 nodes collapsed)
function_definition (+102 nodes collapsed)
function_definition (+147 nodes collapsed)
function_definition (+108 nodes collapsed)
function_definition (+166 nodes collapsed)
function_definition (+40 nodes collapsed)
comment "// We don't have a copyable Endpoint and NeckoTargetChannelF"...
comment "// std::function<void()>. It's not possible to avoid the co"...
comment "// lambda to std::function, so does the capture list. Hence,"...
comment "// use the old-fashioned channel event inheritance."
class_specifier (+193 nodes collapsed)
; ";"
function_definition (+50 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+83 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+103 nodes collapsed)
function_definition (+67 nodes collapsed)
function_definition (+113 nodes collapsed)
function_definition (+77 nodes collapsed)
function_definition (+156 nodes collapsed)
function_definition (+154 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition (+23 nodes collapsed)
function_definition (+292 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+48 nodes collapsed)
function_definition (+48 nodes collapsed)
} "}"
comment "// namespace mozilla::net"

After

translation_unit
comment "/* This Source Code Form is subject to the terms of the Mozi"...
comment "// HttpLog.h should generally be included first"
preproc_include
#include "#include"
string_literal
" "\""
string_content "HttpLog.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsError.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsHttp.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsICacheEntry.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/BasePrincipal.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/PerfStats.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/ContentChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/DocGroup.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/ServiceWorkerUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/BrowserChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/LinkStyle.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/ReferrerInfo.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/extensions/StreamFilterParent.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ipc/IPCStreamUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/NeckoChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/HttpChannelChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/CacheEntryWriteHandleChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/PBackgroundDataBridge.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/UrlClassifierCommon.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/UrlClassifierFeatureFactory.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "AltDataOutputStreamChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "CookieServiceChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "HttpBackgroundChannelChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "NetworkMarker.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsCOMPtr.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsContentPolicyUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsDOMNavigationTiming.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsISocketTransport.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsIThreadRetargetableStreamListener.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsIStreamTransportService.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsStringStream.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsHttpChannel.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsHttpHandler.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsQueryObject.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsNetUtil.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsSerializationHelper.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/glean/NetwerkProtocolHttpMetrics.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/PerformanceStorage.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/glean/NetwerkMetrics.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ipc/InputStreamUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ipc/URIUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ipc/BackgroundUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/DNS.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/net/SocketProcessBridgeChild.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/ScopeExit.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/StaticPrefs_network.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/StoragePrincipalHelper.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "SerializedLoadContext.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsInputStreamPump.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsContentSecurityManager.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsICompressConvStats.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mozilla/dom/Document.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsIScriptError.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsISerialEventTarget.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsRedirectHistoryEntry.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsSocketTransportService2.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsStreamUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsThreadUtils.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsCORSListenerProxy.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "nsIOService.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<functional>"
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "mozilla"
:: "::"
identifier "dom"
; ";"
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "mozilla"
:: "::"
identifier "ipc"
; ";"
namespace_definition
namespace "namespace"
nested_namespace_specifier
namespace_identifier "mozilla"
:: "::"
namespace_identifier "net"
declaration_list
{ "{"
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild"
comment "//----------------------------------------------------------"...
function_definition (+228 nodes collapsed)
function_definition (+433 nodes collapsed)
function_definition (+51 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsISupports"
comment "//----------------------------------------------------------"...
expression_statement
call_expression
identifier "NS_IMPL_ADDREF"
argument_list
( "("
identifier "HttpChannelChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_IMETHODIMP_"
argument_list
( "("
identifier "MozExternalRefCountType"
) ")"
; ""
function_definition (+437 nodes collapsed)
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_BEGIN"
argument_list
( "("
identifier "HttpChannelChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIRequest"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIHttpChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIHttpChannelInternal"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY_CONDITIONAL"
argument_list
( "("
identifier "nsICacheInfoChannel"
, ","
unary_expression
! "!"
call_expression
field_expression
identifier "mMultiPartID"
. "."
field_identifier "isSome"
argument_list
( "("
) ")"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIResumableChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsISupportsPriority"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIClassOfService"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIProxiedChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsITraceableChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIAsyncVerifyRedirectCallback"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIChildChannel"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsIHttpChannelChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY_CONDITIONAL"
argument_list
( "("
identifier "nsIMultiPartChannel"
, ","
call_expression
field_expression
identifier "mMultiPartID"
. "."
field_identifier "isSome"
argument_list
( "("
) ")"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY_CONDITIONAL"
argument_list
( "("
identifier "nsIThreadRetargetableRequest"
, ","
unary_expression
! "!"
call_expression
field_expression
identifier "mMultiPartID"
. "."
field_identifier "isSome"
argument_list
( "("
) ")"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY_CONCRETE"
argument_list
( "("
identifier "HttpChannelChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_END_INHERITING"
argument_list
( "("
identifier "HttpBaseChannel"
) ")"
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::PHttpChannelChild"
comment "//----------------------------------------------------------"...
; ""
function_definition (+96 nodes collapsed)
function_definition (+172 nodes collapsed)
function_definition (+98 nodes collapsed)
function_definition (+177 nodes collapsed)
function_definition (+185 nodes collapsed)
function_definition (+1125 nodes collapsed)
function_definition (+107 nodes collapsed)
function_definition (+180 nodes collapsed)
function_definition (+474 nodes collapsed)
function_definition (+206 nodes collapsed)
function_definition (+703 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+157 nodes collapsed)
function_definition (+159 nodes collapsed)
function_definition (+156 nodes collapsed)
function_definition (+179 nodes collapsed)
function_definition (+375 nodes collapsed)
function_definition (+146 nodes collapsed)
function_definition (+173 nodes collapsed)
function_definition (+664 nodes collapsed)
function_definition (+164 nodes collapsed)
function_definition (+108 nodes collapsed)
comment "// We want to inspect all upgradable mixed content loads"
comment "// (i.e., loads point to HTTP from an HTTPS page), for"
comment "// resources that stem from audio, video and img elements."
comment "// Of those, we want to measure which succceed and which fai"...
comment "// Some double negatives, but we check the following:exempt "...
comment "// 1) Request was upgraded as mixed passive content"
comment "// 2) Request _could_ have been upgraded as mixed passive co"...
comment "// had been set and Request wasn't upgraded by any other mea"...
function_definition (+348 nodes collapsed)
function_definition (+499 nodes collapsed)
function_definition (+133 nodes collapsed)
function_definition (+121 nodes collapsed)
function_definition (+109 nodes collapsed)
comment "// We need to have an implementation of this function just s"...
comment "// all references to mCallOnResume of type HttpChannelChild:"...
comment "// to set a member function ptr to a base class function."
function_definition (+37 nodes collapsed)
function_definition (+138 nodes collapsed)
function_definition (+174 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition (+29 nodes collapsed)
function_definition (+137 nodes collapsed)
function_definition (+21 nodes collapsed)
function_definition (+98 nodes collapsed)
function_definition (+201 nodes collapsed)
function_definition (+241 nodes collapsed)
function_definition (+75 nodes collapsed)
function_definition (+1074 nodes collapsed)
function_definition (+270 nodes collapsed)
function_definition (+301 nodes collapsed)
function_definition (+517 nodes collapsed)
function_definition (+284 nodes collapsed)
function_definition (+219 nodes collapsed)
function_definition (+138 nodes collapsed)
function_definition (+155 nodes collapsed)
function_definition (+237 nodes collapsed)
comment "// Completes the redirect and cleans up the old channel."
function_definition (+138 nodes collapsed)
function_definition (+105 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIChildChannel"
comment "//----------------------------------------------------------"...
function_definition (+576 nodes collapsed)
function_definition (+271 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIAsyncVerifyRedirectCallback"
comment "//----------------------------------------------------------"...
function_definition (+562 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIRequest"
comment "//----------------------------------------------------------"...
function_definition (+29 nodes collapsed)
function_definition (+27 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition (+326 nodes collapsed)
function_definition (+119 nodes collapsed)
function_definition (+282 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIChannel"
comment "//----------------------------------------------------------"...
function_definition (+52 nodes collapsed)
function_definition (+337 nodes collapsed)
function_definition (+645 nodes collapsed)
comment "// Assigns an nsISerialEventTarget to our IPDL actor so that"...
comment "// sent to the correct DocGroup/TabGroup."
function_definition (+33 nodes collapsed)
function_definition (+80 nodes collapsed)
function_definition (+100 nodes collapsed)
function_definition (+1618 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIHttpChannel"
comment "//----------------------------------------------------------"...
function_definition (+184 nodes collapsed)
function_definition (+159 nodes collapsed)
function_definition (+23 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition
type_identifier "NS_IMETHODIMP"
function_declarator
qualified_identifier
namespace_identifier "HttpChannelChild"
:: "::"
identifier "UpgradeToSecure"
parameter_list
( "("
) ")"
compound_statement
{ "{"
comment "// disabled until/unless addons run in child or something el"...
return_statement
return "return"
identifier "NS_ERROR_NOT_IMPLEMENTED"
; ";"
} "}"
function_definition (+28 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIHttpChannelInternal"
comment "//----------------------------------------------------------"...
function_definition (+25 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsICacheInfoChannel"
comment "//----------------------------------------------------------"...
function_definition (+70 nodes collapsed)
function_definition (+62 nodes collapsed)
function_definition (+46 nodes collapsed)
function_definition (+30 nodes collapsed)
function_definition (+45 nodes collapsed)
function_definition (+49 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+33 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+28 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+73 nodes collapsed)
function_definition (+27 nodes collapsed)
function_definition (+48 nodes collapsed)
expression_statement
call_expression
identifier "NS_IMPL_ADDREF"
argument_list
( "("
identifier "CacheEntryWriteHandleChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_IMPL_RELEASE"
argument_list
( "("
identifier "CacheEntryWriteHandleChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_BEGIN"
argument_list
( "("
identifier "CacheEntryWriteHandleChild"
) ")"
; ""
expression_statement
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsISupports"
) ")"
; ""
ERROR
call_expression
identifier "NS_INTERFACE_MAP_ENTRY"
argument_list
( "("
identifier "nsICacheEntryWriteHandle"
) ")"
identifier "NS_INTERFACE_MAP_END"
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "CacheEntryWriteHandleChild"
:: "::"
identifier "AddIPDLReference"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "AddRef"
argument_list
( "("
) ")"
; ";"
} "}"
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "CacheEntryWriteHandleChild"
:: "::"
identifier "ReleaseIPDLReference"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "Release"
argument_list
( "("
) ")"
; ";"
} "}"
function_definition
type_identifier "NS_IMETHODIMP"
function_declarator (+27 nodes collapsed)
compound_statement
{ "{"
expression_statement
call_expression
identifier "MOZ_ASSERT"
argument_list
( "("
call_expression
identifier "NS_IsMainThread"
argument_list
( "("
) ")"
, ","
string_literal
" "\""
string_content "Main thread only"
" "\""
) ")"
; ";"
if_statement
if "if"
condition_clause
( "("
unary_expression
! "!"
call_expression
identifier "CanSend"
argument_list
( "("
) ")"
) ")"
compound_statement
{ "{"
return_statement
return "return"
identifier "NS_ERROR_NOT_AVAILABLE"
; ";"
} "}"
if_statement (+40 nodes collapsed)
declaration
template_type
type_identifier "RefPtr"
template_argument_list
< "<"
type_descriptor
type_identifier "AltDataOutputStreamChild"
> ">"
init_declarator
identifier "stream"
= "="
new_expression
new "new"
type_identifier "AltDataOutputStreamChild"
argument_list
( "("
) ")"
; ";"
expression_statement
call_expression
field_expression
identifier "stream"
-> "->"
field_identifier "AddIPDLReference"
argument_list
( "("
) ")"
; ";"
if_statement (+50 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "stream"
. "."
field_identifier "forget"
argument_list
( "("
identifier "_retval"
) ")"
; ";"
return_statement
return "return"
identifier "NS_OK"
; ";"
} "}"
function_definition
type_identifier "NS_IMETHODIMP"
function_declarator
qualified_identifier
namespace_identifier "HttpChannelChild"
:: "::"
identifier "GetCacheEntryWriteHandle"
parameter_list
( "("
parameter_declaration
type_identifier "nsICacheEntryWriteHandle"
pointer_declarator
* "*"
pointer_declarator
* "*"
identifier "_retval"
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "MOZ_ASSERT"
argument_list
( "("
call_expression
identifier "NS_IsMainThread"
argument_list
( "("
) ")"
, ","
string_literal
" "\""
string_content "Main thread only"
" "\""
) ")"
; ";"
if_statement
if "if"
condition_clause
( "("
unary_expression
! "!"
call_expression
identifier "CanSend"
argument_list
( "("
) ")"
) ")"
compound_statement
{ "{"
return_statement
return "return"
identifier "NS_ERROR_NOT_AVAILABLE"
; ";"
} "}"
if_statement (+40 nodes collapsed)
declaration
template_type
type_identifier "nsCOMPtr"
template_argument_list
< "<"
type_descriptor
type_identifier "nsISerialEventTarget"
> ">"
init_declarator
identifier "neckoTarget"
= "="
call_expression
identifier "GetNeckoTarget"
argument_list
( "("
) ")"
; ";"
expression_statement
call_expression
identifier "MOZ_ASSERT"
argument_list
( "("
identifier "neckoTarget"
) ")"
; ";"
declaration
template_type
type_identifier "RefPtr"
template_argument_list
< "<"
type_descriptor
type_identifier "CacheEntryWriteHandleChild"
> ">"
init_declarator
identifier "handle"
= "="
new_expression
new "new"
type_identifier "CacheEntryWriteHandleChild"
argument_list
( "("
) ")"
; ";"
expression_statement
call_expression
field_expression
identifier "handle"
-> "->"
field_identifier "AddIPDLReference"
argument_list
( "("
) ")"
; ";"
if_statement (+30 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "handle"
. "."
field_identifier "forget"
argument_list
( "("
identifier "_retval"
) ")"
; ";"
return_statement
return "return"
identifier "NS_OK"
; ";"
} "}"
function_definition (+226 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+56 nodes collapsed)
function_definition (+99 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIResumableChannel"
comment "//----------------------------------------------------------"...
function_definition (+71 nodes collapsed)
comment "// GetEntityID is shared in HttpBaseChannel"
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsISupportsPriority"
comment "//----------------------------------------------------------"...
function_definition (+102 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIClassOfService"
comment "//----------------------------------------------------------"...
function_definition (+112 nodes collapsed)
function_definition (+99 nodes collapsed)
function_definition (+91 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+89 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIProxiedChannel"
comment "//----------------------------------------------------------"...
function_definition (+27 nodes collapsed)
function_definition (+25 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIHttpChannelChild"
comment "//----------------------------------------------------------"...
function_definition (+27 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+87 nodes collapsed)
function_definition (+134 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIMuliPartChannel"
comment "//----------------------------------------------------------"...
function_definition (+76 nodes collapsed)
function_definition (+60 nodes collapsed)
function_definition (+45 nodes collapsed)
function_definition (+45 nodes collapsed)
comment "//----------------------------------------------------------"...
comment "// HttpChannelChild::nsIThreadRetargetableRequest"
comment "//----------------------------------------------------------"...
function_definition (+308 nodes collapsed)
function_definition (+41 nodes collapsed)
function_definition (+79 nodes collapsed)
function_definition (+102 nodes collapsed)
function_definition (+147 nodes collapsed)
function_definition (+108 nodes collapsed)
function_definition (+166 nodes collapsed)
function_definition (+40 nodes collapsed)
comment "// We don't have a copyable Endpoint and NeckoTargetChannelF"...
comment "// std::function<void()>. It's not possible to avoid the co"...
comment "// lambda to std::function, so does the capture list. Hence,"...
comment "// use the old-fashioned channel event inheritance."
class_specifier (+193 nodes collapsed)
; ";"
function_definition (+50 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+83 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+103 nodes collapsed)
function_definition (+67 nodes collapsed)
function_definition (+113 nodes collapsed)
function_definition (+77 nodes collapsed)
function_definition (+156 nodes collapsed)
function_definition (+154 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition (+23 nodes collapsed)
function_definition (+292 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+22 nodes collapsed)
function_definition (+48 nodes collapsed)
function_definition (+48 nodes collapsed)
} "}"
comment "// namespace mozilla::net"