michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: sw=2 ts=2 sts=2 expandtab michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * This wraps nsSimpleURI so that all calls to it are done on the main thread. michael@0: */ michael@0: michael@0: #ifndef __nsNullPrincipalURI_h__ michael@0: #define __nsNullPrincipalURI_h__ michael@0: michael@0: #include "nsIURI.h" michael@0: #include "nsISizeOf.h" michael@0: #include "nsAutoPtr.h" michael@0: #include "nsString.h" michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/MemoryReporting.h" michael@0: michael@0: // {51fcd543-3b52-41f7-b91b-6b54102236e6} michael@0: #define NS_NULLPRINCIPALURI_IMPLEMENTATION_CID \ michael@0: {0x51fcd543, 0x3b52, 0x41f7, \ michael@0: {0xb9, 0x1b, 0x6b, 0x54, 0x10, 0x22, 0x36, 0xe6} } michael@0: michael@0: class nsNullPrincipalURI MOZ_FINAL : public nsIURI michael@0: , public nsISizeOf michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIURI michael@0: michael@0: // nsISizeOf michael@0: virtual size_t SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const; michael@0: virtual size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const; michael@0: michael@0: nsNullPrincipalURI(const nsCString &aSpec); michael@0: michael@0: private: michael@0: nsCString mScheme; michael@0: nsCString mPath; michael@0: }; michael@0: michael@0: #endif // __nsNullPrincipalURI_h__