Bug 1494162 - Part 45: Lazy load Menu and MenuItem in TabBar. r=pbro
[gecko.git] / netwerk / cache2 / CacheIndexContextIterator.h
blob296e821acb3080c8fa12e2a17ac8f5291a62f42f
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;
12 namespace mozilla {
13 namespace net {
15 class CacheIndexContextIterator : public CacheIndexIterator
17 public:
18 CacheIndexContextIterator(CacheIndex *aIndex, bool aAddNew,
19 nsILoadContextInfo *aInfo);
20 virtual ~CacheIndexContextIterator() = default;
22 private:
23 virtual void AddRecord(CacheIndexRecord *aRecord) override;
24 virtual void AddRecords(const nsTArray<CacheIndexRecord *> &aRecords);
26 nsCOMPtr<nsILoadContextInfo> mInfo;
29 } // namespace net
30 } // namespace mozilla
32 #endif