nsDeviceProtocolHandler.h 962 B

1234567891011121314151617181920212223242526272829303132333435
  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 nsDeviceProtocolHandler_h_
  6. #define nsDeviceProtocolHandler_h_
  7. #include "nsIProtocolHandler.h"
  8. #include "mozilla/Attributes.h"
  9. namespace mozilla {
  10. namespace net {
  11. // {6b0ffe9e-d114-486b-aeb7-da62e7273ed5}
  12. #define NS_DEVICEPROTOCOLHANDLER_CID \
  13. { 0x60ffe9e, 0xd114, 0x486b, \
  14. {0xae, 0xb7, 0xda, 0x62, 0xe7, 0x27, 0x3e, 0xd5} }
  15. class nsDeviceProtocolHandler final : public nsIProtocolHandler {
  16. ~nsDeviceProtocolHandler() {}
  17. public:
  18. NS_DECL_THREADSAFE_ISUPPORTS
  19. NS_DECL_NSIPROTOCOLHANDLER
  20. nsDeviceProtocolHandler() {}
  21. MOZ_MUST_USE nsresult Init();
  22. };
  23. } // namespace net
  24. } // namespace mozilla
  25. #endif