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: #ifndef nsLoadContextInfo_h__ michael@0: #define nsLoadContextInfo_h__ michael@0: michael@0: #include "nsILoadContextInfo.h" michael@0: michael@0: class nsIChannel; michael@0: class nsILoadContext; michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: class LoadContextInfo : public nsILoadContextInfo michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSILOADCONTEXTINFO michael@0: michael@0: LoadContextInfo(bool aIsPrivate, uint32_t aAppId, bool aIsInBrowser, bool aIsAnonymous); michael@0: michael@0: private: michael@0: virtual ~LoadContextInfo(); michael@0: michael@0: protected: michael@0: uint32_t mAppId; michael@0: bool mIsPrivate : 1; michael@0: bool mIsInBrowser : 1; michael@0: bool mIsAnonymous : 1; michael@0: }; michael@0: michael@0: LoadContextInfo * michael@0: GetLoadContextInfo(nsIChannel * aChannel); michael@0: michael@0: LoadContextInfo * michael@0: GetLoadContextInfo(nsILoadContext * aLoadContext, michael@0: bool aAnonymous); michael@0: michael@0: LoadContextInfo * michael@0: GetLoadContextInfo(nsILoadContextInfo* aInfo); michael@0: michael@0: LoadContextInfo * michael@0: GetLoadContextInfo(bool const aIsPrivate = false, michael@0: uint32_t const aAppId = nsILoadContextInfo::NO_APP_ID, michael@0: bool const aIsInBrowserElement = false, michael@0: bool const aIsAnonymous = false); michael@0: michael@0: } // net michael@0: } // mozilla michael@0: michael@0: #endif