1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef CacheIndexContextIterator__h__
6 #define CacheIndexContextIterator__h__
8 #include "CacheIndexIterator.h"
10 class nsILoadContextInfo
;
15 class CacheIndexContextIterator
: public CacheIndexIterator
18 CacheIndexContextIterator(CacheIndex
*aIndex
, bool aAddNew
,
19 nsILoadContextInfo
*aInfo
);
20 virtual ~CacheIndexContextIterator() = default;
23 virtual void AddRecord(CacheIndexRecord
*aRecord
) override
;
24 virtual void AddRecords(const nsTArray
<CacheIndexRecord
*> &aRecords
);
26 nsCOMPtr
<nsILoadContextInfo
> mInfo
;
30 } // namespace mozilla