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

Side by Side Diff: include/AdblockPlus/ErrorCallback.h

Issue 10310030: Convert references to FileSystem & Co. into shared pointers (avoid use after free) (Closed)
Patch Set: Created April 18, 2013, 11:59 a.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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld