WebBrowserPersistSerializeChild.h (1168B)
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 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/. */ 6 7 #ifndef WebBrowserPersistSerializeChild_h__ 8 #define WebBrowserPersistSerializeChild_h__ 9 10 #include "mozilla/PWebBrowserPersistDocument.h" 11 #include "mozilla/PWebBrowserPersistSerializeChild.h" 12 #include "nsIOutputStream.h" 13 #include "nsIWebBrowserPersistDocument.h" 14 15 namespace mozilla { 16 17 class WebBrowserPersistSerializeChild final 18 : public PWebBrowserPersistSerializeChild, 19 public nsIWebBrowserPersistWriteCompletion, 20 public nsIWebBrowserPersistURIMap, 21 public nsIOutputStream { 22 public: 23 explicit WebBrowserPersistSerializeChild(const WebBrowserPersistURIMap& aMap); 24 25 NS_DECL_NSIWEBBROWSERPERSISTWRITECOMPLETION 26 NS_DECL_NSIWEBBROWSERPERSISTURIMAP 27 NS_DECL_NSIOUTPUTSTREAM 28 NS_DECL_ISUPPORTS 29 private: 30 WebBrowserPersistURIMap mMap; 31 32 virtual ~WebBrowserPersistSerializeChild(); 33 }; 34 35 } // namespace mozilla 36 37 #endif // WebBrowserPersistSerializeChild_h__