nsDeviceChannel.h 762 B

123456789101112131415161718192021222324252627
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  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. #ifndef nsDeviceChannel_h_
  6. #define nsDeviceChannel_h_
  7. #include "nsBaseChannel.h"
  8. class nsDeviceChannel : public nsBaseChannel
  9. {
  10. public:
  11. NS_DECL_ISUPPORTS_INHERITED
  12. nsDeviceChannel();
  13. MOZ_MUST_USE nsresult Init(nsIURI* uri);
  14. MOZ_MUST_USE nsresult OpenContentStream(bool aAsync,
  15. nsIInputStream **aStream,
  16. nsIChannel **aChannel) override;
  17. protected:
  18. ~nsDeviceChannel();
  19. };
  20. #endif