tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CacheEntryWriteHandleParent.h (1212B)


      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_CacheEntryWriteHandleParent_h
      9 #define mozilla_net_CacheEntryWriteHandleParent_h
     10 
     11 #include "mozilla/net/PCacheEntryWriteHandleParent.h"
     12 #include "nsCOMPtr.h"
     13 #include "nsICacheEntry.h"
     14 #include "nsICacheInfoChannel.h"
     15 
     16 namespace mozilla {
     17 namespace net {
     18 
     19 /**
     20 * CacheEntryWriteHandleParent is a wrapper for nsICacheEntry, for the
     21 * asynchronous OpenAlternativeOutputStream call.
     22 */
     23 class CacheEntryWriteHandleParent final : public nsICacheEntryWriteHandle,
     24                                          public PCacheEntryWriteHandleParent {
     25 public:
     26  NS_DECL_ISUPPORTS
     27  NS_DECL_NSICACHEENTRYWRITEHANDLE
     28  explicit CacheEntryWriteHandleParent(nsICacheEntry* aCacheEntry);
     29 
     30 private:
     31  virtual ~CacheEntryWriteHandleParent() = default;
     32 
     33  nsCOMPtr<nsICacheEntry> mCacheEntry;
     34 };
     35 
     36 }  // namespace net
     37 }  // namespace mozilla
     38 
     39 #endif  // mozilla_net_DocumentChannelChild_h