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

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

Issue 5747779603267584: Issue #1234 - Rework strings in debug facility (Closed)
Patch Set: Created Feb. 24, 2015, 2:50 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
22 class CPluginDebug 21 class CPluginDebug
23 { 22 {
24 23
25 public: 24 public:
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 CString& error, DWORD dwProcessId=0, DWORD dwThreadId= 0); 28 static void Debug(const std::string& text, DWORD processId=0, DWORD threadId=0 );
29 static void DebugClear(); 29 static void Debug(const std::wstring& text, DWORD processId=0, DWORD threadId= 0);
30 static void DebugError(const CString& error); 30 static void DebugException(const std::exception& ex);
31 static void DebugErrorCode(DWORD errorCode, const CString& error, DWORD dwProc essId=0, DWORD dwThreadId=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 CString& text); 35 static void DebugResult(const std::wstring& text);
36 static void DebugResultDomain(const CString& domain); 36 static void DebugResultDomain(const std::wstring& domain);
37 static void DebugResultBlocking(const CString& 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 CString& tag, const CString& id, const CSt ring& filter); 38 static void DebugResultHiding(const std::wstring& tag, const std::wstring& id, const std::wstring& filter);
39 static void DebugResultClear();
40 #endif 39 #endif
41 40
42 #if (defined ENABLE_DEBUG_RESULT_IGNORED) 41 #if (defined ENABLE_DEBUG_RESULT_IGNORED)
43 static void DebugResultIgnoring(const CString& 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);
44 #endif 43 #endif
45 }; 44 };
46 45
47 46
48 #endif // _PLUGIN_DEBUG_H_ 47 #endif // _PLUGIN_DEBUG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld