/work/obj-fuzz/dist/include/mozilla/net/WyciwygChannelParent.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | | |
5 | | #ifndef mozilla_net_WyciwygChannelParent_h |
6 | | #define mozilla_net_WyciwygChannelParent_h |
7 | | |
8 | | #include "mozilla/net/PWyciwygChannelParent.h" |
9 | | #include "mozilla/net/NeckoCommon.h" |
10 | | #include "nsIStreamListener.h" |
11 | | |
12 | | #include "nsIWyciwygChannel.h" |
13 | | #include "nsIInterfaceRequestor.h" |
14 | | #include "nsILoadContext.h" |
15 | | |
16 | | namespace mozilla { |
17 | | namespace dom { |
18 | | class PBrowserParent; |
19 | | } // namespace dom |
20 | | |
21 | | namespace net { |
22 | | |
23 | | class WyciwygChannelParent : public PWyciwygChannelParent |
24 | | , public nsIStreamListener |
25 | | , public nsIInterfaceRequestor |
26 | | { |
27 | | public: |
28 | | NS_DECL_ISUPPORTS |
29 | | NS_DECL_NSIREQUESTOBSERVER |
30 | | NS_DECL_NSISTREAMLISTENER |
31 | | NS_DECL_NSIINTERFACEREQUESTOR |
32 | | |
33 | | WyciwygChannelParent(); |
34 | | |
35 | | protected: |
36 | 0 | virtual ~WyciwygChannelParent() = default; |
37 | | |
38 | | virtual mozilla::ipc::IPCResult RecvInit(const URIParams& uri, |
39 | | const ipc::PrincipalInfo& aRequestingPrincipalInfo, |
40 | | const ipc::PrincipalInfo& aTriggeringPrincipalInfo, |
41 | | const ipc::PrincipalInfo& aPrincipalToInheritInfo, |
42 | | const uint32_t& aSecurityFlags, |
43 | | const uint32_t& aContentPolicyType) override; |
44 | | virtual mozilla::ipc::IPCResult RecvAsyncOpen(const URIParams& original, |
45 | | const uint32_t& loadFlags, |
46 | | const IPC::SerializedLoadContext& loadContext, |
47 | | const PBrowserOrId &parent) override; |
48 | | virtual mozilla::ipc::IPCResult RecvWriteToCacheEntry(const nsDependentSubstring& data) override; |
49 | | virtual mozilla::ipc::IPCResult RecvCloseCacheEntry(const nsresult& reason) override; |
50 | | virtual mozilla::ipc::IPCResult RecvSetCharsetAndSource(const int32_t& source, |
51 | | const nsCString& charset) override; |
52 | | virtual mozilla::ipc::IPCResult RecvSetSecurityInfo(const nsCString& securityInfo) override; |
53 | | virtual mozilla::ipc::IPCResult RecvCancel(const nsresult& statusCode) override; |
54 | | virtual mozilla::ipc::IPCResult RecvAppData(const IPC::SerializedLoadContext& loadContext, |
55 | | const PBrowserOrId &parent) override; |
56 | | |
57 | | virtual void ActorDestroy(ActorDestroyReason why) override; |
58 | | |
59 | | bool SetupAppData(const IPC::SerializedLoadContext& loadContext, |
60 | | const PBrowserOrId &aParent); |
61 | | |
62 | | nsCOMPtr<nsIWyciwygChannel> mChannel; |
63 | | bool mIPCClosed; |
64 | | bool mReceivedAppData; |
65 | | nsCOMPtr<nsILoadContext> mLoadContext; |
66 | | }; |
67 | | |
68 | | } // namespace net |
69 | | } // namespace mozilla |
70 | | |
71 | | #endif // mozilla_net_WyciwygChannelParent_h |