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

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

Issue 10169005: Windows specific changes. All tests passing on Windows. (Closed)
Patch Set: Created April 9, 2013, 2:22 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
« no previous file with comments | « no previous file | src/GlobalJsObject.cpp » ('j') | src/GlobalJsObject.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef ADBLOCKPLUS_FILTER_ENGINE_H 1 #ifndef ADBLOCKPLUS_FILTER_ENGINE_H
2 #define ADBLOCKPLUS_FILTER_ENGINE_H 2 #define ADBLOCKPLUS_FILTER_ENGINE_H
3 3
4 #include <vector> 4 #include <vector>
5 #include <map> 5 #include <map>
6 #include <string> 6 #include <string>
7 #ifdef _WIN32 || _WIN64
Wladimir Palant 2013/04/09 05:47:07 I would prefer #if _MSC_VER_ here - it's cleaner,
8 #include <memory>
9 #include <cctype>
10 #include <functional>
Wladimir Palant 2013/04/09 05:47:07 Are these two headers really required on Windows?
Oleksandr 2013/04/09 05:54:21 <cctype> - for isspace <functional> - for not1 and
Wladimir Palant 2013/04/09 06:43:48 Then they should be added at the top of FilterEngi
Felix Dahlke 2013/04/09 08:18:06 If it compiles on Linux/Android without them, they
Wladimir Palant 2013/04/09 08:38:32 We are using functions from these headers. It mere
11 #else
7 #include <tr1/memory> 12 #include <tr1/memory>
13 #endif
8 14
9 namespace AdblockPlus 15 namespace AdblockPlus
10 { 16 {
11 class JsEngine; 17 class JsEngine;
12 class FilterEngine; 18 class FilterEngine;
13 19
14 class JsObject 20 class JsObject
15 { 21 {
16 public: 22 public:
17 std::string GetProperty(const std::string& name, const std::string& defaultV alue) const; 23 std::string GetProperty(const std::string& name, const std::string& defaultV alue) const;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #if FILTER_ENGINE_STUBS 115 #if FILTER_ENGINE_STUBS
110 std::map<std::string, FilterPtr> knownFilters; 116 std::map<std::string, FilterPtr> knownFilters;
111 std::vector<FilterPtr> listedFilters; 117 std::vector<FilterPtr> listedFilters;
112 std::map<std::string, SubscriptionPtr> knownSubscriptions; 118 std::map<std::string, SubscriptionPtr> knownSubscriptions;
113 std::vector<SubscriptionPtr> listedSubscriptions; 119 std::vector<SubscriptionPtr> listedSubscriptions;
114 #endif 120 #endif
115 }; 121 };
116 } 122 }
117 123
118 #endif 124 #endif
OLDNEW
« no previous file with comments | « no previous file | src/GlobalJsObject.cpp » ('j') | src/GlobalJsObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld