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 CacheIndexContextIterator__h__ michael@0: #define CacheIndexContextIterator__h__ michael@0: michael@0: #include "CacheIndexIterator.h" michael@0: michael@0: class nsILoadContextInfo; michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: class CacheIndexContextIterator : public CacheIndexIterator michael@0: { michael@0: public: michael@0: CacheIndexContextIterator(CacheIndex *aIndex, bool aAddNew, michael@0: nsILoadContextInfo *aInfo); michael@0: virtual ~CacheIndexContextIterator(); michael@0: michael@0: private: michael@0: virtual void AddRecord(CacheIndexRecord *aRecord); michael@0: virtual void AddRecords(const nsTArray &aRecords); michael@0: michael@0: nsCOMPtr mInfo; michael@0: }; michael@0: michael@0: } // net michael@0: } // mozilla michael@0: michael@0: #endif