nsConsoleMessage.h 763 B

123456789101112131415161718192021222324252627282930313233
  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 __nsconsolemessage_h__
  6. #define __nsconsolemessage_h__
  7. #include "mozilla/Attributes.h"
  8. #include "nsIConsoleMessage.h"
  9. #include "nsString.h"
  10. class nsConsoleMessage final : public nsIConsoleMessage
  11. {
  12. public:
  13. nsConsoleMessage();
  14. explicit nsConsoleMessage(const char16_t* aMessage);
  15. NS_DECL_THREADSAFE_ISUPPORTS
  16. NS_DECL_NSICONSOLEMESSAGE
  17. private:
  18. ~nsConsoleMessage()
  19. {
  20. }
  21. int64_t mTimeStamp;
  22. nsString mMessage;
  23. };
  24. #endif /* __nsconsolemessage_h__ */