Backed out changeset 9d8b4c0b99ed (bug 1945683) for causing btime failures. CLOSED...
[gecko.git] / dom / xslt / base / txURIUtils.h
blob96082b99f7a32330132065da39fd88e90bfc5605
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef TRANSFRMX_URIUTILS_H
7 #define TRANSFRMX_URIUTILS_H
9 #include "txCore.h"
11 class nsINode;
13 namespace mozilla::dom {
14 class Document;
15 } // namespace mozilla::dom
17 /**
18 * A utility class for URI handling
19 * Not yet finished, only handles file URI at this point
20 **/
22 class URIUtils {
23 public:
24 /**
25 * Reset the given document with the document of the source node
27 static void ResetWithSource(mozilla::dom::Document* aNewDoc,
28 nsINode* aSourceNode);
30 /**
31 * Resolves the given href argument, using the given documentBase
32 * if necessary.
33 * The new resolved href will be appended to the given dest String
34 **/
35 static void resolveHref(const nsAString& href, const nsAString& base,
36 nsAString& dest);
37 }; //-- URIUtils
39 /* */
40 #endif