/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim:set ts=4 sw=4 sts=4 et cin: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// HttpLog.h should generally be included first #include"HttpLog.h"
nsresult HttpConnectionMgrParent::UpdateRequestTokenBucket(
EventTokenBucket* aBucket) { // We don't have to do anything here. UpdateRequestTokenBucket() will be // triggered by pref change in socket process. return NS_OK;
}
nsresult HttpConnectionMgrParent::DoShiftReloadConnectionCleanup() { // Do nothing here. DoShiftReloadConnectionCleanup() will be triggered by // observer notification or pref change in socket process. return NS_OK;
}
nsresult HttpConnectionMgrParent::PruneDeadConnections() { // Do nothing here. PruneDeadConnections() will be triggered by // observer notification or pref change in socket process. return NS_OK;
}
void HttpConnectionMgrParent::AbortAndCloseAllConnections(int32_t, ARefBase*) { // Do nothing here. AbortAndCloseAllConnections() will be triggered by // observer notification in socket process.
}
nsresult HttpConnectionMgrParent::UpdateParam(nsParamName name,
uint16_t value) { // Do nothing here. UpdateParam() will be triggered by pref change in // socket process. return NS_OK;
}
void HttpConnectionMgrParent::PrintDiagnostics() { // Do nothing here. PrintDiagnostics() will be triggered by pref change in // socket process.
}
nsresult HttpConnectionMgrParent::ReclaimConnection(HttpConnectionBase*) {
MOZ_ASSERT_UNREACHABLE("ReclaimConnection should not be called"); return NS_ERROR_NOT_IMPLEMENTED;
}
nsresult HttpConnectionMgrParent::ProcessPendingQ(nsHttpConnectionInfo*) {
MOZ_ASSERT_UNREACHABLE("ProcessPendingQ should not be called"); return NS_ERROR_NOT_IMPLEMENTED;
}
nsresult HttpConnectionMgrParent::ProcessPendingQ() {
MOZ_ASSERT_UNREACHABLE("ProcessPendingQ should not be called"); return NS_ERROR_NOT_IMPLEMENTED;
}
nsresult HttpConnectionMgrParent::GetSocketThreadTarget(nsIEventTarget**) {
MOZ_ASSERT_UNREACHABLE("GetSocketThreadTarget should not be called"); return NS_ERROR_NOT_IMPLEMENTED;
}
nsresult HttpConnectionMgrParent::VerifyTraffic() { // Do nothing here. VerifyTraffic() will be triggered by observer notification // in socket process. return NS_OK;
}
void HttpConnectionMgrParent::ExcludeHttp2(const nsHttpConnectionInfo* ci) { // Do nothing.
}
void HttpConnectionMgrParent::ExcludeHttp3(const nsHttpConnectionInfo* ci) { // Do nothing.
}
nsresult HttpConnectionMgrParent::ClearConnectionHistory() { // Do nothing here. ClearConnectionHistory() will be triggered by // observer notification in socket process. return NS_OK;
}
if (!CanSend()) { // OnUpgradeFailed is expected to be called on socket thread.
nsCOMPtr<nsIEventTarget> target =
do_GetService(NS_SOCKETTRANSPORTSERVICE_CONTRACTID); if (target) {
nsCOMPtr<nsIHttpUpgradeListener> listener = aUpgradeListener;
target->Dispatch(NS_NewRunnableFunction( "HttpConnectionMgrParent::CompleteUpgrade", [listener]() {
Unused << listener->OnUpgradeFailed(NS_ERROR_NOT_AVAILABLE);
}));
} return NS_OK;
}
// We need to link the id and the upgrade listener here, so // WebSocketConnectionParent can connect to the listener correctly later.
uint32_t id = AddHttpUpgradeListenerToMap(aUpgradeListener);
Unused << SendStartWebSocketConnection(
WrapNotNull(aTrans->AsHttpTransactionParent()), id); return NS_OK;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.