Backed out changeset 85b802206e37 (bug 1883618) for causing bustage on nsHTTPCompress...
[gecko.git] / netwerk / ipc / InputChannelThrottleQueueChild.h
bloba758dac417f4199d3702ff37ebe9398c4dbc0967
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef InputChannelThrottleQueueChild_h__
7 #define InputChannelThrottleQueueChild_h__
9 #include "mozilla/net/PInputChannelThrottleQueueChild.h"
10 #include "mozilla/net/ThrottleQueue.h"
11 #include "nsISupportsImpl.h"
13 namespace mozilla {
14 namespace net {
16 class InputChannelThrottleQueueChild final
17 : public PInputChannelThrottleQueueChild,
18 public ThrottleQueue {
19 public:
20 friend class PInputChannelThrottleQueueChild;
21 NS_DECL_ISUPPORTS_INHERITED
23 explicit InputChannelThrottleQueueChild() = default;
24 NS_IMETHOD RecordRead(uint32_t aBytesRead) override;
26 private:
27 virtual ~InputChannelThrottleQueueChild() = default;
30 } // namespace net
31 } // namespace mozilla
33 #endif // InputChannelThrottleQueueChild_h__