tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

InputChannelThrottleQueueChild.h (1013B)


      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/. */
      5 
      6 #ifndef InputChannelThrottleQueueChild_h__
      7 #define InputChannelThrottleQueueChild_h__
      8 
      9 #include "mozilla/net/PInputChannelThrottleQueueChild.h"
     10 #include "mozilla/net/ThrottleQueue.h"
     11 #include "nsISupportsImpl.h"
     12 
     13 namespace mozilla {
     14 namespace net {
     15 
     16 class InputChannelThrottleQueueChild final
     17    : public PInputChannelThrottleQueueChild,
     18      public ThrottleQueue {
     19 public:
     20  friend class PInputChannelThrottleQueueChild;
     21  NS_DECL_ISUPPORTS_INHERITED
     22 
     23  explicit InputChannelThrottleQueueChild() = default;
     24  NS_IMETHOD RecordRead(uint32_t aBytesRead) override;
     25 
     26 private:
     27  virtual ~InputChannelThrottleQueueChild() = default;
     28 };
     29 
     30 }  // namespace net
     31 }  // namespace mozilla
     32 
     33 #endif  // InputChannelThrottleQueueChild_h__