1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #include "nsSecurityConsoleMessage.h" 8 9 NS_IMPL_ISUPPORTS(nsSecurityConsoleMessage, nsISecurityConsoleMessage) 10 11 nsSecurityConsoleMessage::nsSecurityConsoleMessage() = default; 12 13 nsSecurityConsoleMessage::~nsSecurityConsoleMessage() = default; 14 15 NS_IMETHODIMP GetTag(nsAString & aTag)16nsSecurityConsoleMessage::GetTag(nsAString& aTag) { 17 aTag = mTag; 18 return NS_OK; 19 } 20 21 NS_IMETHODIMP SetTag(const nsAString & aTag)22nsSecurityConsoleMessage::SetTag(const nsAString& aTag) { 23 mTag = aTag; 24 return NS_OK; 25 } 26 27 NS_IMETHODIMP GetCategory(nsAString & aCategory)28nsSecurityConsoleMessage::GetCategory(nsAString& aCategory) { 29 aCategory = mCategory; 30 return NS_OK; 31 } 32 33 NS_IMETHODIMP SetCategory(const nsAString & aCategory)34nsSecurityConsoleMessage::SetCategory(const nsAString& aCategory) { 35 mCategory = aCategory; 36 return NS_OK; 37 } 38