michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set sw=2 ts=8 et tw=80 : */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef WebSocketLog_h michael@0: #define WebSocketLog_h michael@0: michael@0: #ifdef MOZ_LOGGING michael@0: #define FORCE_PR_LOG michael@0: #endif michael@0: michael@0: #if defined(PR_LOG) michael@0: #error "This file must be #included before any IPDL-generated files or other files that #include prlog.h" michael@0: #endif michael@0: michael@0: #include "base/basictypes.h" michael@0: #include "prlog.h" michael@0: #include "mozilla/net/NeckoChild.h" michael@0: michael@0: #ifdef PR_LOGGING michael@0: extern PRLogModuleInfo* webSocketLog; michael@0: #endif michael@0: michael@0: #undef LOG michael@0: #define LOG(args) PR_LOG(webSocketLog, PR_LOG_DEBUG, args) michael@0: michael@0: #endif