Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / webbrowserpersist / WebBrowserPersistSerializeChild.h
blob86bcf0e1e74cf0f3cbf8f8690414bac998b6f241
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef WebBrowserPersistSerializeChild_h__
8 #define WebBrowserPersistSerializeChild_h__
10 #include "mozilla/PWebBrowserPersistSerializeChild.h"
12 #include "mozilla/PWebBrowserPersistDocument.h"
13 #include "nsIWebBrowserPersistDocument.h"
14 #include "nsIOutputStream.h"
16 namespace mozilla {
18 class WebBrowserPersistSerializeChild final
19 : public PWebBrowserPersistSerializeChild,
20 public nsIWebBrowserPersistWriteCompletion,
21 public nsIWebBrowserPersistURIMap,
22 public nsIOutputStream {
23 public:
24 explicit WebBrowserPersistSerializeChild(const WebBrowserPersistURIMap& aMap);
26 NS_DECL_NSIWEBBROWSERPERSISTWRITECOMPLETION
27 NS_DECL_NSIWEBBROWSERPERSISTURIMAP
28 NS_DECL_NSIOUTPUTSTREAM
29 NS_DECL_ISUPPORTS
30 private:
31 WebBrowserPersistURIMap mMap;
33 virtual ~WebBrowserPersistSerializeChild();
36 } // namespace mozilla
38 #endif // WebBrowserPersistSerializeChild_h__