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

Unified Diff: include/AdblockPlus/DefaultLogSystem.h

Issue 10524054: Rename ErrorCallback into LogSystem, provide a proper console API (Closed)
Patch Set: Created May 10, 2013, 2:01 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/AdblockPlus/DefaultLogSystem.h
===================================================================
rename from include/AdblockPlus/DefaultErrorCallback.h
rename to include/AdblockPlus/DefaultLogSystem.h
--- a/include/AdblockPlus/DefaultErrorCallback.h
+++ b/include/AdblockPlus/DefaultLogSystem.h
@@ -10,23 +10,24 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef ADBLOCK_PLUS_DEFAULT_ERROR_CALLBACK_H
-#define ADBLOCK_PLUS_DEFAULT_ERROR_CALLBACK_H
+#ifndef ADBLOCK_PLUS_DEFAULT_LOG_SYSTEM_H
+#define ADBLOCK_PLUS_DEFAULT_LOG_SYSTEM_H
-#include "ErrorCallback.h"
+#include "LogSystem.h"
namespace AdblockPlus
{
- class DefaultErrorCallback : public ErrorCallback
+ class DefaultLogSystem : public LogSystem
{
public:
- void operator()(const std::string& message);
+ void operator()(LogLevel logLevel, const std::string& message,
+ const std::string& source);
};
}
#endif

Powered by Google App Engine
This is Rietveld