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

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

Issue 5137721374801920: Issue #1173 - Default behavior for catch-all blocks
Patch Set: rebase Created March 3, 2015, 8:06 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
« no previous file with comments | « src/plugin/PluginClientBase.cpp ('k') | src/plugin/PluginDebug.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #define PLUGIN_ERROR_ENTRY_POINT 99
22 #define PLUGIN_ERROR_ENTRY_POINT_CATCHALL_EXCEPTION 1
21 23
22 class CPluginDebug 24 class CPluginDebug
23 { 25 {
24 26
25 public: 27 public:
28 static void DebugSystemException(const std::system_error& ex, int errorId, int errorSubid, const std::string& description);
26 29
27 #if (defined ENABLE_DEBUG_INFO) 30 #if (defined ENABLE_DEBUG_INFO)
28 static void Debug(const CString& error, DWORD dwProcessId=0, DWORD dwThreadId= 0); 31 static void Debug(const std::string& text, DWORD processId=0, DWORD threadId=0 );
29 static void DebugClear(); 32 static void Debug(const std::wstring& text, DWORD processId=0, DWORD threadId= 0);
30 static void DebugError(const CString& error); 33 static void DebugException(const std::exception& ex);
31 static void DebugErrorCode(DWORD errorCode, const CString& error, DWORD dwProc essId=0, DWORD dwThreadId=0); 34 static void DebugErrorCode(DWORD errorCode, const std::string& error, DWORD pr ocessId=0, DWORD threadId=0);
35 static void DebugOrdinaryException(const std::exception& ex, int errorId, int errorSubid, const std::string& description);
32 #endif 36 #endif
33 37
34 #if (defined ENABLE_DEBUG_RESULT) 38 #if (defined ENABLE_DEBUG_RESULT)
35 static void DebugResult(const CString& text); 39 static void DebugResult(const std::wstring& text);
36 static void DebugResultDomain(const CString& domain); 40 static void DebugResultDomain(const std::wstring& domain);
37 static void DebugResultBlocking(const CString& type, const std::wstring& src, const std::wstring& domain); 41 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); 42 static void DebugResultHiding(const std::wstring& tag, const std::wstring& id, const std::wstring& filter);
39 static void DebugResultClear();
40 #endif 43 #endif
41 44
42 #if (defined ENABLE_DEBUG_RESULT_IGNORED) 45 #if (defined ENABLE_DEBUG_RESULT_IGNORED)
43 static void DebugResultIgnoring(const CString& type, const std::wstring& src, const std::wstring& domain); 46 static void DebugResultIgnoring(const std::wstring& type, const std::wstring& src, const std::wstring& domain);
44 #endif 47 #endif
45 }; 48 };
46 49
50 void EntryPointExceptionDefault(std::string name);
51
47 52
48 #endif // _PLUGIN_DEBUG_H_ 53 #endif // _PLUGIN_DEBUG_H_
OLDNEW
« no previous file with comments | « src/plugin/PluginClientBase.cpp ('k') | src/plugin/PluginDebug.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld