netwerk/protocol/wyciwyg/WyciwygChannelParent.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial