| OLD | NEW |
| 1 #ifndef COMMUNICATION_H | 1 #ifndef COMMUNICATION_H |
| 2 #define COMMUNICATION_H | 2 #define COMMUNICATION_H |
| 3 | 3 |
| 4 #include <memory> | 4 #include <memory> |
| 5 #include <sstream> | 5 #include <sstream> |
| 6 #include <stdexcept> | 6 #include <stdexcept> |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <Windows.h> | 10 #include <Windows.h> |
| 11 | 11 |
| 12 namespace Communication | 12 namespace Communication |
| 13 { | 13 { |
| 14 extern const std::wstring pipeName; | 14 extern const std::wstring pipeName; |
| 15 extern std::wstring browserSID; | 15 extern std::wstring browserSID; |
| 16 | 16 |
| 17 enum ProcType : uint32_t { | 17 enum ProcType : uint32_t { |
| 18 PROC_MATCHES, | 18 PROC_MATCHES, |
| 19 PROC_GET_ELEMHIDE_SELECTORS, | 19 PROC_GET_ELEMHIDE_SELECTORS, |
| 20 PROC_AVAILABLE_SUBSCRIPTIONS, | 20 PROC_AVAILABLE_SUBSCRIPTIONS, |
| 21 PROC_LISTED_SUBSCRIPTIONS, | 21 PROC_LISTED_SUBSCRIPTIONS, |
| 22 PROC_SET_SUBSCRIPTION, | 22 PROC_SET_SUBSCRIPTION, |
| 23 PROC_ADD_SUBSCRIPTION, |
| 24 PROC_REMOVE_SUBSCRIPTION, |
| 23 PROC_UPDATE_ALL_SUBSCRIPTIONS, | 25 PROC_UPDATE_ALL_SUBSCRIPTIONS, |
| 24 PROC_GET_EXCEPTION_DOMAINS, | 26 PROC_GET_EXCEPTION_DOMAINS, |
| 25 PROC_IS_WHITELISTED_URL, | 27 PROC_IS_WHITELISTED_URL, |
| 26 PROC_ADD_FILTER, | 28 PROC_ADD_FILTER, |
| 27 PROC_REMOVE_FILTER, | 29 PROC_REMOVE_FILTER, |
| 28 PROC_SET_PREF, | 30 PROC_SET_PREF, |
| 29 PROC_GET_PREF, | 31 PROC_GET_PREF, |
| 30 PROC_IS_FIRST_RUN_ACTION_NEEDED, | 32 PROC_IS_FIRST_RUN_ACTION_NEEDED, |
| 31 PROC_CHECK_FOR_UPDATES, | 33 PROC_CHECK_FOR_UPDATES, |
| 32 PROC_GET_DOCUMENTATION_LINK, | 34 PROC_GET_DOCUMENTATION_LINK, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 190 |
| 189 InputBuffer ReadMessage(); | 191 InputBuffer ReadMessage(); |
| 190 void WriteMessage(OutputBuffer& message); | 192 void WriteMessage(OutputBuffer& message); |
| 191 | 193 |
| 192 protected: | 194 protected: |
| 193 HANDLE pipe; | 195 HANDLE pipe; |
| 194 }; | 196 }; |
| 195 } | 197 } |
| 196 | 198 |
| 197 #endif | 199 #endif |
| OLD | NEW |