OLD | NEW |
1 #ifndef ADBLOCKPLUS_ERROR_CALLBACK_H | 1 #ifndef ADBLOCKPLUS_ERROR_CALLBACK_H |
2 #define ADBLOCKPLUS_ERROR_CALLBACK_H | 2 #define ADBLOCKPLUS_ERROR_CALLBACK_H |
3 | 3 |
4 #include <string> | 4 #include <string> |
5 | 5 |
| 6 #include "tr1_memory.h" |
| 7 |
6 namespace AdblockPlus | 8 namespace AdblockPlus |
7 { | 9 { |
8 class ErrorCallback | 10 class ErrorCallback |
9 { | 11 { |
10 public: | 12 public: |
11 virtual ~ErrorCallback(); | 13 virtual ~ErrorCallback(); |
12 virtual void operator()(const std::string& message) = 0; | 14 virtual void operator()(const std::string& message) = 0; |
13 }; | 15 }; |
| 16 |
| 17 typedef std::tr1::shared_ptr<ErrorCallback> ErrorCallbackPtr; |
14 } | 18 } |
15 | 19 |
16 #endif | 20 #endif |
OLD | NEW |