Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef nsLoadContextInfo_h__ |
michael@0 | 6 | #define nsLoadContextInfo_h__ |
michael@0 | 7 | |
michael@0 | 8 | #include "nsILoadContextInfo.h" |
michael@0 | 9 | |
michael@0 | 10 | class nsIChannel; |
michael@0 | 11 | class nsILoadContext; |
michael@0 | 12 | |
michael@0 | 13 | namespace mozilla { |
michael@0 | 14 | namespace net { |
michael@0 | 15 | |
michael@0 | 16 | class LoadContextInfo : public nsILoadContextInfo |
michael@0 | 17 | { |
michael@0 | 18 | public: |
michael@0 | 19 | NS_DECL_THREADSAFE_ISUPPORTS |
michael@0 | 20 | NS_DECL_NSILOADCONTEXTINFO |
michael@0 | 21 | |
michael@0 | 22 | LoadContextInfo(bool aIsPrivate, uint32_t aAppId, bool aIsInBrowser, bool aIsAnonymous); |
michael@0 | 23 | |
michael@0 | 24 | private: |
michael@0 | 25 | virtual ~LoadContextInfo(); |
michael@0 | 26 | |
michael@0 | 27 | protected: |
michael@0 | 28 | uint32_t mAppId; |
michael@0 | 29 | bool mIsPrivate : 1; |
michael@0 | 30 | bool mIsInBrowser : 1; |
michael@0 | 31 | bool mIsAnonymous : 1; |
michael@0 | 32 | }; |
michael@0 | 33 | |
michael@0 | 34 | LoadContextInfo * |
michael@0 | 35 | GetLoadContextInfo(nsIChannel * aChannel); |
michael@0 | 36 | |
michael@0 | 37 | LoadContextInfo * |
michael@0 | 38 | GetLoadContextInfo(nsILoadContext * aLoadContext, |
michael@0 | 39 | bool aAnonymous); |
michael@0 | 40 | |
michael@0 | 41 | LoadContextInfo * |
michael@0 | 42 | GetLoadContextInfo(nsILoadContextInfo* aInfo); |
michael@0 | 43 | |
michael@0 | 44 | LoadContextInfo * |
michael@0 | 45 | GetLoadContextInfo(bool const aIsPrivate = false, |
michael@0 | 46 | uint32_t const aAppId = nsILoadContextInfo::NO_APP_ID, |
michael@0 | 47 | bool const aIsInBrowserElement = false, |
michael@0 | 48 | bool const aIsAnonymous = false); |
michael@0 | 49 | |
michael@0 | 50 | } // net |
michael@0 | 51 | } // mozilla |
michael@0 | 52 | |
michael@0 | 53 | #endif |