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

Side by Side Diff: src/shared/Communication.h

Issue 10948032: Fix domain-based whitelisting (Closed)
Patch Set: Created June 14, 2013, 2:44 p.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 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 15
16 enum ProcType : uint32_t { 16 enum ProcType : uint32_t {
17 PROC_MATCHES, 17 PROC_MATCHES,
18 PROC_GET_ELEMHIDE_SELECTORS, 18 PROC_GET_ELEMHIDE_SELECTORS,
19 PROC_AVAILABLE_SUBSCRIPTIONS, 19 PROC_AVAILABLE_SUBSCRIPTIONS,
20 PROC_LISTED_SUBSCRIPTIONS, 20 PROC_LISTED_SUBSCRIPTIONS,
21 PROC_SET_SUBSCRIPTION, 21 PROC_SET_SUBSCRIPTION,
22 PROC_UPDATE_ALL_SUBSCRIPTIONS, 22 PROC_UPDATE_ALL_SUBSCRIPTIONS,
23 PROC_GET_EXCEPTION_DOMAINS, 23 PROC_GET_EXCEPTION_DOMAINS,
24 PROC_ADD_FILTER, 24 PROC_ADD_FILTER,
25 PROC_REMOVE_FILTER,
25 }; 26 };
26 enum ValueType : uint32_t { 27 enum ValueType : uint32_t {
27 TYPE_PROC, TYPE_STRING, TYPE_WSTRING, TYPE_INT64, TYPE_INT32, TYPE_BOOL 28 TYPE_PROC, TYPE_STRING, TYPE_WSTRING, TYPE_INT64, TYPE_INT32, TYPE_BOOL
28 }; 29 };
29 typedef uint32_t SizeType; 30 typedef uint32_t SizeType;
30 31
31 class InputBuffer 32 class InputBuffer
32 { 33 {
33 public: 34 public:
34 InputBuffer(const std::string& data) : buffer(data), hasType(false) {} 35 InputBuffer(const std::string& data) : buffer(data), hasType(false) {}
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 158
158 InputBuffer ReadMessage(); 159 InputBuffer ReadMessage();
159 void WriteMessage(OutputBuffer& message); 160 void WriteMessage(OutputBuffer& message);
160 161
161 protected: 162 protected:
162 HANDLE pipe; 163 HANDLE pipe;
163 }; 164 };
164 } 165 }
165 166
166 #endif 167 #endif
OLDNEW
« src/plugin/PluginSettings.cpp ('K') | « src/plugin/PluginUserSettings.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld