/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */
NS_IMPL_CLASSINFO(nsSimpleNestedURI, nullptr, nsIClassInfo::THREADSAFE,
NS_SIMPLENESTEDURI_CID) // Empty CI getter. We only need nsIClassInfo for Serialization
NS_IMPL_CI_INTERFACE_GETTER0(nsSimpleNestedURI)
nsCOMPtr<nsIURI> inner;
nsresult rv =
NS_MutateURI(mInnerURI).SetPathQueryRef(aPathQueryRef).Finalize(inner);
NS_ENSURE_SUCCESS(rv, rv);
rv = nsSimpleURI::SetPathQueryRef(aPathQueryRef);
NS_ENSURE_SUCCESS(rv, rv); // If the regular SetPathQueryRef worked, also set it on the inner URI
mInnerURI = inner; return NS_OK;
}
nsCOMPtr<nsIURI> inner;
nsresult rv = NS_MutateURI(mInnerURI).SetQuery(aQuery).Finalize(inner);
NS_ENSURE_SUCCESS(rv, rv);
rv = nsSimpleURI::SetQuery(aQuery);
NS_ENSURE_SUCCESS(rv, rv); // If the regular SetQuery worked, also set it on the inner URI
mInnerURI = inner; return NS_OK;
}
nsCOMPtr<nsIURI> inner;
nsresult rv = NS_MutateURI(mInnerURI).SetRef(aRef).Finalize(inner);
NS_ENSURE_SUCCESS(rv, rv);
rv = nsSimpleURI::SetRef(aRef);
NS_ENSURE_SUCCESS(rv, rv); // If the regular SetRef worked, also set it on the inner URI
mInnerURI = inner; return NS_OK;
}
nsSimpleNestedURI* url = new nsSimpleNestedURI(innerClone);
SetRefOnClone(url, refHandlingMode, newRef);
return url;
}
// Queries this list of interfaces. If none match, it queries mURI.
NS_IMPL_NSIURIMUTATOR_ISUPPORTS(nsSimpleNestedURI::Mutator, nsIURISetters,
nsIURIMutator, nsISerializable,
nsINestedURIMutator)
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.