2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2015-08-06 00:25:39 +03:00
|
|
|
*
|
|
|
|
* 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 WebBrowserPersistDocumentChild_h__
|
|
|
|
#define WebBrowserPersistDocumentChild_h__
|
|
|
|
|
|
|
|
#include "mozilla/PWebBrowserPersistDocumentChild.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsIWebBrowserPersistDocument.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
class WebBrowserPersistDocumentChild final
|
|
|
|
: public PWebBrowserPersistDocumentChild {
|
|
|
|
public:
|
|
|
|
WebBrowserPersistDocumentChild();
|
|
|
|
~WebBrowserPersistDocumentChild();
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2015-08-06 00:25:39 +03:00
|
|
|
// This sends either Attributes or InitFailure and thereby causes
|
|
|
|
// the actor to leave the START state.
|
|
|
|
void Start(nsIWebBrowserPersistDocument* aDocument);
|
2019-01-02 16:05:23 +03:00
|
|
|
void Start(dom::Document* aDocument);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2019-02-06 18:58:43 +03:00
|
|
|
mozilla::ipc::IPCResult RecvSetPersistFlags(const uint32_t& aNewFlags);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2019-02-06 18:58:07 +03:00
|
|
|
PWebBrowserPersistResourcesChild* AllocPWebBrowserPersistResourcesChild();
|
2015-08-06 00:25:39 +03:00
|
|
|
virtual mozilla::ipc::IPCResult RecvPWebBrowserPersistResourcesConstructor(
|
|
|
|
PWebBrowserPersistResourcesChild* aActor) override;
|
2019-02-06 18:58:07 +03:00
|
|
|
bool DeallocPWebBrowserPersistResourcesChild(
|
|
|
|
PWebBrowserPersistResourcesChild* aActor);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2019-02-06 18:58:07 +03:00
|
|
|
PWebBrowserPersistSerializeChild* AllocPWebBrowserPersistSerializeChild(
|
|
|
|
const WebBrowserPersistURIMap& aMap,
|
|
|
|
const nsCString& aRequestedContentType, const uint32_t& aEncoderFlags,
|
|
|
|
const uint32_t& aWrapColumn);
|
2015-08-06 00:25:39 +03:00
|
|
|
virtual mozilla::ipc::IPCResult RecvPWebBrowserPersistSerializeConstructor(
|
|
|
|
PWebBrowserPersistSerializeChild* aActor,
|
|
|
|
const WebBrowserPersistURIMap& aMap,
|
|
|
|
const nsCString& aRequestedContentType, const uint32_t& aEncoderFlags,
|
|
|
|
const uint32_t& aWrapColumn) override;
|
2019-02-06 18:58:07 +03:00
|
|
|
bool DeallocPWebBrowserPersistSerializeChild(
|
|
|
|
PWebBrowserPersistSerializeChild* aActor);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2015-08-06 00:25:39 +03:00
|
|
|
private:
|
|
|
|
nsCOMPtr<nsIWebBrowserPersistDocument> mDocument;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // WebBrowserPersistDocumentChild_h__
|