/src/mozilla-central/netwerk/protocol/data/DataChannelChild.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* vim: set ts=4 sw=4 sts=4 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 NS_DATACHANNELCHILD_H |
8 | | #define NS_DATACHANNELCHILD_H |
9 | | |
10 | | #include "nsDataChannel.h" |
11 | | #include "nsIChildChannel.h" |
12 | | #include "nsISupportsImpl.h" |
13 | | |
14 | | #include "mozilla/net/PDataChannelChild.h" |
15 | | |
16 | | namespace mozilla { |
17 | | namespace net { |
18 | | |
19 | | class DataChannelChild : public nsDataChannel |
20 | | , public nsIChildChannel |
21 | | , public PDataChannelChild |
22 | | { |
23 | | public: |
24 | | explicit DataChannelChild(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 | 0 | ~DataChannelChild() = default; |
34 | | |
35 | | void AddIPDLReference(); |
36 | | |
37 | | bool mIPCOpen; |
38 | | }; |
39 | | |
40 | | } // namespace net |
41 | | } // namespace mozilla |
42 | | |
43 | | #endif /* NS_DATACHANNELCHILD_H */ |