Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginDebug.h

Issue 5187613258416128: Issue #1234 - Rewrite internals of debug facility (Closed)
Patch Set: rebase only Created Nov. 26, 2015, 1:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 #ifndef _PLUGIN_DEBUG_H_ 18 #ifndef _PLUGIN_DEBUG_H_
19 #define _PLUGIN_DEBUG_H_ 19 #define _PLUGIN_DEBUG_H_
20 20
21 class CPluginDebug 21 class CPluginDebug
22 { 22 {
23 23
24 public: 24 public:
25 static void DebugSystemException(const std::system_error& ex, int errorId, int errorSubid, const std::string& description); 25 static void DebugSystemException(const std::system_error& ex, int errorId, int errorSubid, const std::string& description);
26 26
27 #if (defined ENABLE_DEBUG_INFO) 27 #if (defined ENABLE_DEBUG_INFO)
28 static void Debug(const std::string& text, DWORD processId=0, DWORD threadId=0 ); 28 static void Debug(const std::string& text);
29 static void Debug(const std::wstring& text, DWORD processId=0, DWORD threadId= 0); 29 static void Debug(const std::wstring& text);
30 static void DebugException(const std::exception& ex); 30 static void DebugException(const std::exception& ex);
31 static void DebugErrorCode(DWORD errorCode, const std::string& error, DWORD pr ocessId=0, DWORD threadId=0); 31 static void DebugErrorCode(DWORD errorCode, const std::string& error, DWORD pr ocessId=0, DWORD threadId=0);
32 #endif 32 #endif
33 33
34 #if (defined ENABLE_DEBUG_RESULT) 34 #if (defined ENABLE_DEBUG_RESULT)
35 static void DebugResult(const std::wstring& text); 35 static void DebugResult(const std::wstring& text);
36 static void DebugResultDomain(const std::wstring& domain); 36 static void DebugResultDomain(const std::wstring& domain);
37 static void DebugResultBlocking(const std::wstring& type, const std::wstring& src, const std::wstring& domain); 37 static void DebugResultBlocking(const std::wstring& type, const std::wstring& src, const std::wstring& domain);
38 static void DebugResultHiding(const std::wstring& tag, const std::wstring& id, const std::wstring& filter); 38 static void DebugResultHiding(const std::wstring& tag, const std::wstring& id, const std::wstring& filter);
39 #endif 39 #endif
40 40
41 #if (defined ENABLE_DEBUG_RESULT_IGNORED) 41 #if (defined ENABLE_DEBUG_RESULT_IGNORED)
42 static void DebugResultIgnoring(const std::wstring& type, const std::wstring& src, const std::wstring& domain); 42 static void DebugResultIgnoring(const std::wstring& type, const std::wstring& src, const std::wstring& domain);
43 #endif 43 #endif
44 }; 44 };
45 45
46 46
47 #endif // _PLUGIN_DEBUG_H_ 47 #endif // _PLUGIN_DEBUG_H_
OLDNEW
« no previous file with comments | « src/plugin/Console.h ('k') | src/plugin/PluginDebug.cpp » ('j') | src/plugin/PluginDebug.cpp » ('J')

Powered by Google App Engine
This is Rietveld