| OLD | NEW |
| 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 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 private: | 62 private: |
| 63 static std::vector<CPluginError> s_pluginErrors; | 63 static std::vector<CPluginError> s_pluginErrors; |
| 64 static CComAutoCriticalSection s_criticalSectionQueue; | 64 static CComAutoCriticalSection s_criticalSectionQueue; |
| 65 | 65 |
| 66 public: | 66 public: |
| 67 static void LogPluginError(DWORD errorCode, int errorId, int errorSubid, const
std::string& description="", bool isAsync=false, DWORD dwProcessId=0, DWORD dwT
hreadId=0); | 67 static void LogPluginError(DWORD errorCode, int errorId, int errorSubid, const
std::string& description="", bool isAsync=false, DWORD dwProcessId=0, DWORD dwT
hreadId=0); |
| 68 static void PostPluginError(int errorId, int errorSubid, DWORD errorCode, cons
t std::string& errorDescription); | 68 static void PostPluginError(int errorId, int errorSubid, DWORD errorCode, cons
t std::string& errorDescription); |
| 69 static bool PopFirstPluginError(CPluginError& pluginError); | 69 static bool PopFirstPluginError(CPluginError& pluginError); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 /** | |
| 73 * Wrapper around Microsoft API 'UrlUnescape' | |
| 74 * | |
| 75 * This function has modify-in-place semantics. | |
| 76 * This behavior matches that of the legacy version of this function declared ab
ove. | |
| 77 * At present, callers of this function have no code to handle error conditions
that might arise here. | |
| 78 * Because there's no error handling, therefore, this masks failures in UrlUnesc
ape. | |
| 79 */ | |
| 80 void UnescapeUrl(std::wstring& url); | |
| 81 | |
| 82 #endif // _PLUGIN_CLIENT_BASE_H_ | 72 #endif // _PLUGIN_CLIENT_BASE_H_ |
| OLD | NEW |