haikuwebkit/Source/WebCore/platform/NotImplemented.cpp

43 lines
1.5 KiB
C++
Raw Permalink Normal View History

Make LOG() work in WebProcess and NetworkProcess https://bugs.webkit.org/show_bug.cgi?id=104718 Reviewed by Tim Horton. Source/WebCore: Split initialization function into a new InitializeLogging.h file, because it's needed in WebKit, but cannot be included along with WebKit version of this file. We'd have a confilct between LOG_CHANNEL_PREFIX definitions if we tried. * WebCore.xcodeproj/project.pbxproj: Make Logging.h a project header, and InitializeLogging.h a private one. * GNUmakefile.list.am: * Target.pri: * platform/InitializeLogging.h: Added. * platform/Logging.h: * platform/blackberry/LoggingBlackBerry.cpp: * platform/efl/LoggingEfl.cpp: * platform/gtk/LoggingGtk.cpp: * platform/mac/LoggingMac.mm: * platform/qt/LoggingQt.cpp: * platform/win/LoggingWin.cpp: * platform/wx/LoggingWx.cpp: Include InitializeLogging.h where this function is implemented. * platform/NotImplemented.h: * platform/NotImplemented.cpp: Added. Changed to not include WebCore's Logging.h in the header, because NotImplemented.h is used in WebKits, which have incompatibe logging headers. Source/WebKit/blackberry: * Api/BlackBerryGlobal.cpp: Include InitializeLogging.h Source/WebKit/efl: * ewk/ewk_main.cpp: Include InitializeLogging.h Source/WebKit/gtk: * webkit/webkitglobals.cpp: Include InitializeLogging.h Source/WebKit/mac: * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between WebCore and WebKit versions of this file. Source/WebKit/qt: * WebCoreSupport/InitWebCoreQt.cpp: Include InitializeLogging.h Source/WebKit/win: * WebView.cpp: Updated for a new include file to use in WebKits. Source/WebKit/wx: * WebView.cpp: Include InitializeLogging.h Source/WebKit2: * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::initializeNetworkProcess): Initialize WebCore and WebKit2 logging. * Platform/Logging.cpp: (WebKit::initializeLogChannelsIfNecessary): Added Network and NetworkScheduling. Re-ordered to match declaration order, alphabetical clearly doesn't help here. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::WebProcess): Initialize WebKit2 logging in addition to WebCore. * UIProcess/WebContext.cpp: (WebKit::WebContext::WebContext): Initialize WebKit2 logging in addition to WebCore. Canonical link: https://commits.webkit.org/123041@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-12 19:07:30 +00:00
/*
* Copyright (C) 2012 Apple Inc. All rights reserved.
Make LOG() work in WebProcess and NetworkProcess https://bugs.webkit.org/show_bug.cgi?id=104718 Reviewed by Tim Horton. Source/WebCore: Split initialization function into a new InitializeLogging.h file, because it's needed in WebKit, but cannot be included along with WebKit version of this file. We'd have a confilct between LOG_CHANNEL_PREFIX definitions if we tried. * WebCore.xcodeproj/project.pbxproj: Make Logging.h a project header, and InitializeLogging.h a private one. * GNUmakefile.list.am: * Target.pri: * platform/InitializeLogging.h: Added. * platform/Logging.h: * platform/blackberry/LoggingBlackBerry.cpp: * platform/efl/LoggingEfl.cpp: * platform/gtk/LoggingGtk.cpp: * platform/mac/LoggingMac.mm: * platform/qt/LoggingQt.cpp: * platform/win/LoggingWin.cpp: * platform/wx/LoggingWx.cpp: Include InitializeLogging.h where this function is implemented. * platform/NotImplemented.h: * platform/NotImplemented.cpp: Added. Changed to not include WebCore's Logging.h in the header, because NotImplemented.h is used in WebKits, which have incompatibe logging headers. Source/WebKit/blackberry: * Api/BlackBerryGlobal.cpp: Include InitializeLogging.h Source/WebKit/efl: * ewk/ewk_main.cpp: Include InitializeLogging.h Source/WebKit/gtk: * webkit/webkitglobals.cpp: Include InitializeLogging.h Source/WebKit/mac: * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between WebCore and WebKit versions of this file. Source/WebKit/qt: * WebCoreSupport/InitWebCoreQt.cpp: Include InitializeLogging.h Source/WebKit/win: * WebView.cpp: Updated for a new include file to use in WebKits. Source/WebKit/wx: * WebView.cpp: Include InitializeLogging.h Source/WebKit2: * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::initializeNetworkProcess): Initialize WebCore and WebKit2 logging. * Platform/Logging.cpp: (WebKit::initializeLogChannelsIfNecessary): Added Network and NetworkScheduling. Re-ordered to match declaration order, alphabetical clearly doesn't help here. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::WebProcess): Initialize WebKit2 logging in addition to WebCore. * UIProcess/WebContext.cpp: (WebKit::WebContext::WebContext): Initialize WebKit2 logging in addition to WebCore. Canonical link: https://commits.webkit.org/123041@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-12 19:07:30 +00:00
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
Make LOG() work in WebProcess and NetworkProcess https://bugs.webkit.org/show_bug.cgi?id=104718 Reviewed by Tim Horton. Source/WebCore: Split initialization function into a new InitializeLogging.h file, because it's needed in WebKit, but cannot be included along with WebKit version of this file. We'd have a confilct between LOG_CHANNEL_PREFIX definitions if we tried. * WebCore.xcodeproj/project.pbxproj: Make Logging.h a project header, and InitializeLogging.h a private one. * GNUmakefile.list.am: * Target.pri: * platform/InitializeLogging.h: Added. * platform/Logging.h: * platform/blackberry/LoggingBlackBerry.cpp: * platform/efl/LoggingEfl.cpp: * platform/gtk/LoggingGtk.cpp: * platform/mac/LoggingMac.mm: * platform/qt/LoggingQt.cpp: * platform/win/LoggingWin.cpp: * platform/wx/LoggingWx.cpp: Include InitializeLogging.h where this function is implemented. * platform/NotImplemented.h: * platform/NotImplemented.cpp: Added. Changed to not include WebCore's Logging.h in the header, because NotImplemented.h is used in WebKits, which have incompatibe logging headers. Source/WebKit/blackberry: * Api/BlackBerryGlobal.cpp: Include InitializeLogging.h Source/WebKit/efl: * ewk/ewk_main.cpp: Include InitializeLogging.h Source/WebKit/gtk: * webkit/webkitglobals.cpp: Include InitializeLogging.h Source/WebKit/mac: * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between WebCore and WebKit versions of this file. Source/WebKit/qt: * WebCoreSupport/InitWebCoreQt.cpp: Include InitializeLogging.h Source/WebKit/win: * WebView.cpp: Updated for a new include file to use in WebKits. Source/WebKit/wx: * WebView.cpp: Include InitializeLogging.h Source/WebKit2: * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::initializeNetworkProcess): Initialize WebCore and WebKit2 logging. * Platform/Logging.cpp: (WebKit::initializeLogChannelsIfNecessary): Added Network and NetworkScheduling. Re-ordered to match declaration order, alphabetical clearly doesn't help here. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::WebProcess): Initialize WebKit2 logging in addition to WebCore. * UIProcess/WebContext.cpp: (WebKit::WebContext::WebContext): Initialize WebKit2 logging in addition to WebCore. Canonical link: https://commits.webkit.org/123041@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-12 19:07:30 +00:00
*/
#include "config.h"
#include "NotImplemented.h"
#include "Logging.h"
namespace WebCore {
Make LOG() work in WebProcess and NetworkProcess https://bugs.webkit.org/show_bug.cgi?id=104718 Reviewed by Tim Horton. Source/WebCore: Split initialization function into a new InitializeLogging.h file, because it's needed in WebKit, but cannot be included along with WebKit version of this file. We'd have a confilct between LOG_CHANNEL_PREFIX definitions if we tried. * WebCore.xcodeproj/project.pbxproj: Make Logging.h a project header, and InitializeLogging.h a private one. * GNUmakefile.list.am: * Target.pri: * platform/InitializeLogging.h: Added. * platform/Logging.h: * platform/blackberry/LoggingBlackBerry.cpp: * platform/efl/LoggingEfl.cpp: * platform/gtk/LoggingGtk.cpp: * platform/mac/LoggingMac.mm: * platform/qt/LoggingQt.cpp: * platform/win/LoggingWin.cpp: * platform/wx/LoggingWx.cpp: Include InitializeLogging.h where this function is implemented. * platform/NotImplemented.h: * platform/NotImplemented.cpp: Added. Changed to not include WebCore's Logging.h in the header, because NotImplemented.h is used in WebKits, which have incompatibe logging headers. Source/WebKit/blackberry: * Api/BlackBerryGlobal.cpp: Include InitializeLogging.h Source/WebKit/efl: * ewk/ewk_main.cpp: Include InitializeLogging.h Source/WebKit/gtk: * webkit/webkitglobals.cpp: Include InitializeLogging.h Source/WebKit/mac: * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between WebCore and WebKit versions of this file. Source/WebKit/qt: * WebCoreSupport/InitWebCoreQt.cpp: Include InitializeLogging.h Source/WebKit/win: * WebView.cpp: Updated for a new include file to use in WebKits. Source/WebKit/wx: * WebView.cpp: Include InitializeLogging.h Source/WebKit2: * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::initializeNetworkProcess): Initialize WebCore and WebKit2 logging. * Platform/Logging.cpp: (WebKit::initializeLogChannelsIfNecessary): Added Network and NetworkScheduling. Re-ordered to match declaration order, alphabetical clearly doesn't help here. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::WebProcess): Initialize WebKit2 logging in addition to WebCore. * UIProcess/WebContext.cpp: (WebKit::WebContext::WebContext): Initialize WebKit2 logging in addition to WebCore. Canonical link: https://commits.webkit.org/123041@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-12 19:07:30 +00:00
#if !LOG_DISABLED
WTFLogChannel* notImplementedLoggingChannel()
{
return &LogNotYetImplemented;
}
#endif
Make LOG() work in WebProcess and NetworkProcess https://bugs.webkit.org/show_bug.cgi?id=104718 Reviewed by Tim Horton. Source/WebCore: Split initialization function into a new InitializeLogging.h file, because it's needed in WebKit, but cannot be included along with WebKit version of this file. We'd have a confilct between LOG_CHANNEL_PREFIX definitions if we tried. * WebCore.xcodeproj/project.pbxproj: Make Logging.h a project header, and InitializeLogging.h a private one. * GNUmakefile.list.am: * Target.pri: * platform/InitializeLogging.h: Added. * platform/Logging.h: * platform/blackberry/LoggingBlackBerry.cpp: * platform/efl/LoggingEfl.cpp: * platform/gtk/LoggingGtk.cpp: * platform/mac/LoggingMac.mm: * platform/qt/LoggingQt.cpp: * platform/win/LoggingWin.cpp: * platform/wx/LoggingWx.cpp: Include InitializeLogging.h where this function is implemented. * platform/NotImplemented.h: * platform/NotImplemented.cpp: Added. Changed to not include WebCore's Logging.h in the header, because NotImplemented.h is used in WebKits, which have incompatibe logging headers. Source/WebKit/blackberry: * Api/BlackBerryGlobal.cpp: Include InitializeLogging.h Source/WebKit/efl: * ewk/ewk_main.cpp: Include InitializeLogging.h Source/WebKit/gtk: * webkit/webkitglobals.cpp: Include InitializeLogging.h Source/WebKit/mac: * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between WebCore and WebKit versions of this file. Source/WebKit/qt: * WebCoreSupport/InitWebCoreQt.cpp: Include InitializeLogging.h Source/WebKit/win: * WebView.cpp: Updated for a new include file to use in WebKits. Source/WebKit/wx: * WebView.cpp: Include InitializeLogging.h Source/WebKit2: * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::initializeNetworkProcess): Initialize WebCore and WebKit2 logging. * Platform/Logging.cpp: (WebKit::initializeLogChannelsIfNecessary): Added Network and NetworkScheduling. Re-ordered to match declaration order, alphabetical clearly doesn't help here. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::WebProcess): Initialize WebKit2 logging in addition to WebCore. * UIProcess/WebContext.cpp: (WebKit::WebContext::WebContext): Initialize WebKit2 logging in addition to WebCore. Canonical link: https://commits.webkit.org/123041@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-12-12 19:07:30 +00:00
}