mirror of
https://github.com/mozilla-firefox/firefox
synced 2026-08-11 12:19:28 +00:00
replaced by .editorconfig # ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D287861
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_net_CacheEntryWriteHandleParent_h
|
|
#define mozilla_net_CacheEntryWriteHandleParent_h
|
|
|
|
#include "mozilla/net/PCacheEntryWriteHandleParent.h"
|
|
#include "nsCOMPtr.h"
|
|
#include "nsICacheEntry.h"
|
|
#include "nsICacheInfoChannel.h"
|
|
|
|
namespace mozilla {
|
|
namespace net {
|
|
|
|
/**
|
|
* CacheEntryWriteHandleParent is a wrapper for nsICacheEntry, for the
|
|
* asynchronous OpenAlternativeOutputStream call.
|
|
*/
|
|
class CacheEntryWriteHandleParent final : public nsICacheEntryWriteHandle,
|
|
public PCacheEntryWriteHandleParent {
|
|
public:
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_NSICACHEENTRYWRITEHANDLE
|
|
explicit CacheEntryWriteHandleParent(nsICacheEntry* aCacheEntry);
|
|
|
|
private:
|
|
virtual ~CacheEntryWriteHandleParent() = default;
|
|
|
|
nsCOMPtr<nsICacheEntry> mCacheEntry;
|
|
};
|
|
|
|
} // namespace net
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_net_DocumentChannelChild_h
|