CacheEntryWriteHandleChild.h (1148B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set sw=2 ts=8 et tw=80 : */ 3 4 /* This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 8 #ifndef mozilla_net_CacheEntryWriteHandleChild_h 9 #define mozilla_net_CacheEntryWriteHandleChild_h 10 11 #include "mozilla/net/PCacheEntryWriteHandleChild.h" 12 #include "nsICacheInfoChannel.h" 13 14 namespace mozilla { 15 namespace net { 16 17 /** 18 * CacheEntryWriteHandleChild is a wrapper for nsICacheEntry, for the 19 * asynchronous OpenAlternativeOutputStream call. 20 */ 21 class CacheEntryWriteHandleChild final : public nsICacheEntryWriteHandle, 22 public PCacheEntryWriteHandleChild { 23 public: 24 NS_DECL_ISUPPORTS 25 NS_DECL_NSICACHEENTRYWRITEHANDLE 26 CacheEntryWriteHandleChild() = default; 27 28 void AddIPDLReference(); 29 void ReleaseIPDLReference(); 30 31 private: 32 virtual ~CacheEntryWriteHandleChild() = default; 33 }; 34 35 } // namespace net 36 } // namespace mozilla 37 38 #endif // mozilla_net_DocumentChannelChild_h