OLD | NEW |
1 #ifndef ADBLOCKPLUS_WEB_REQUEST_H | 1 #ifndef ADBLOCK_PLUS_WEB_REQUEST_H |
2 #define ADBLOCKPLUS_WEB_REQUEST_H | 2 #define ADBLOCK_PLUS_WEB_REQUEST_H |
3 | 3 |
4 #include <stdint.h> | 4 #include <stdint.h> |
5 #include <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "tr1_memory.h" | 8 #include "tr1_memory.h" |
9 | 9 |
10 namespace AdblockPlus | 10 namespace AdblockPlus |
11 { | 11 { |
12 typedef std::vector<std::pair<std::string, std::string> > HeaderList; | 12 typedef std::vector<std::pair<std::string, std::string> > HeaderList; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 }; | 45 }; |
46 | 46 |
47 virtual inline ~WebRequest() {}; | 47 virtual inline ~WebRequest() {}; |
48 virtual ServerResponse GET(const std::string& url, const HeaderList& request
Headers) const = 0; | 48 virtual ServerResponse GET(const std::string& url, const HeaderList& request
Headers) const = 0; |
49 }; | 49 }; |
50 | 50 |
51 typedef std::tr1::shared_ptr<WebRequest> WebRequestPtr; | 51 typedef std::tr1::shared_ptr<WebRequest> WebRequestPtr; |
52 } | 52 } |
53 | 53 |
54 #endif | 54 #endif |
OLD | NEW |