Bug 1550945 - Introduce NS_NewMailnewsURI. rs=bustage-fix CLOSED TREE DONTBUILD
authorJorg K <jorgk@jorgk.com>
Wed, 29 May 2019 11:25:35 +0200
changeset 35703 09d4067eb5ffd8ddf84d5f14724226a345cdae6b
parent 35702 ac121e4bba12a4b47de324c7d0653124ff8d3cb8
child 35704 05e4ae2b2c7c6c2ce4135a7535135ac344a17e84
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbustage-fix
bugs1550945
Bug 1550945 - Introduce NS_NewMailnewsURI. rs=bustage-fix CLOSED TREE DONTBUILD
mailnews/base/util/moz.build
mailnews/base/util/nsNewMailnewsURI.cpp
mailnews/base/util/nsNewMailnewsURI.h
--- a/mailnews/base/util/moz.build
+++ b/mailnews/base/util/moz.build
@@ -14,16 +14,17 @@ EXPORTS += [
     'nsMsgKeyArray.h',
     'nsMsgKeySet.h',
     'nsMsgLineBuffer.h',
     'nsMsgMailNewsUrl.h',
     'nsMsgProtocol.h',
     'nsMsgReadStateTxn.h',
     'nsMsgTxn.h',
     'nsMsgUtils.h',
+    'nsNewMailnewsURI.h',
 ]
 
 EXPORTS.mozilla.mailnews += [
     'ServiceList.h',
     'Services.h',
 ]
 
 SOURCES += [
@@ -38,16 +39,17 @@ SOURCES += [
     'nsMsgKeyArray.cpp',
     'nsMsgKeySet.cpp',
     'nsMsgLineBuffer.cpp',
     'nsMsgMailNewsUrl.cpp',
     'nsMsgProtocol.cpp',
     'nsMsgReadStateTxn.cpp',
     'nsMsgTxn.cpp',
     'nsMsgUtils.cpp',
+    'nsNewMailnewsURI.cpp',
     'nsStopwatch.cpp',
     'Services.cpp',
 ]
 
 EXTRA_JS_MODULES += [
     'ABQueryUtils.jsm',
     'converterWorker.js',
     'errUtils.js',
new file mode 100644
--- /dev/null
+++ b/mailnews/base/util/nsNewMailnewsURI.cpp
@@ -0,0 +1,13 @@
+/* -*- Mode: C++; tab-width: 2; 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/. */
+
+#include "nsNewMailnewsURI.h"
+
+nsresult NS_NewMailnewsURI(nsIURI** aURI, const nsACString& aSpec,
+                           const char* aCharset /* = nullptr */,
+                           nsIURI* aBaseURI /* = nullptr */,
+                           nsIIOService* aIOService /* = nullptr */) {
+  return NS_OK;
+}
new file mode 100644
--- /dev/null
+++ b/mailnews/base/util/nsNewMailnewsURI.h
@@ -0,0 +1,16 @@
+/* -*- 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/. */
+
+#ifndef nsNewMailnewsURI_h__
+#define nsNewMailnewsURI_h__
+
+#include "nsIURI.h"
+#include "nsNetUtil.h"
+
+nsresult NS_NewMailnewsURI(nsIURI** aURI, const nsACString& aSpec,
+                           const char* aCharset /* = nullptr */,
+                           nsIURI* aBaseURI /* = nullptr */,
+                           nsIIOService* aIOService /* = nullptr */);
+#endif