nsChromeProtocolHandler.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* -*- Mode: C++; tab-width: 2; 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. #ifndef nsChromeProtocolHandler_h___
  6. #define nsChromeProtocolHandler_h___
  7. #include "nsIProtocolHandler.h"
  8. #include "nsWeakReference.h"
  9. #include "mozilla/Attributes.h"
  10. #define NS_CHROMEPROTOCOLHANDLER_CID \
  11. { /* 61ba33c0-3031-11d3-8cd0-0060b0fc14a3 */ \
  12. 0x61ba33c0, \
  13. 0x3031, \
  14. 0x11d3, \
  15. {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  16. }
  17. class nsChromeProtocolHandler final : public nsIProtocolHandler,
  18. public nsSupportsWeakReference
  19. {
  20. public:
  21. NS_DECL_THREADSAFE_ISUPPORTS
  22. // nsIProtocolHandler methods:
  23. NS_DECL_NSIPROTOCOLHANDLER
  24. // nsChromeProtocolHandler methods:
  25. nsChromeProtocolHandler() {}
  26. private:
  27. ~nsChromeProtocolHandler() {}
  28. };
  29. #endif /* nsChromeProtocolHandler_h___ */