Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=2 sw=2 sts=2 et tw=80: */
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 mozilla__net__FileChannelChild_h
8 : #define mozilla__net__FileChannelChild_h
9 :
10 : #include "nsFileChannel.h"
11 : #include "nsIChildChannel.h"
12 : #include "nsISupportsImpl.h"
13 :
14 : #include "mozilla/net/PFileChannelChild.h"
15 :
16 : namespace mozilla {
17 : namespace net {
18 :
19 : class FileChannelChild : public nsFileChannel
20 : , public nsIChildChannel
21 : , public PFileChannelChild
22 : {
23 : public:
24 : explicit FileChannelChild(nsIURI *uri);
25 :
26 : NS_DECL_ISUPPORTS_INHERITED
27 : NS_DECL_NSICHILDCHANNEL
28 :
29 : protected:
30 : virtual void ActorDestroy(ActorDestroyReason why) override;
31 :
32 : private:
33 834 : ~FileChannelChild() { };
34 :
35 : void AddIPDLReference();
36 :
37 : bool mIPCOpen;
38 : };
39 :
40 : } // namespace net
41 : } // namespace mozilla
42 :
43 : #endif /* mozilla__net__FileChannelChild_h */
|