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

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

Issue 11756012: Enhanced Protected Mode support (Closed)
Patch Set: Addressing comments Created Sept. 17, 2013, 2:51 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 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 16
16 enum ProcType : uint32_t { 17 enum ProcType : uint32_t {
17 PROC_MATCHES, 18 PROC_MATCHES,
18 PROC_GET_ELEMHIDE_SELECTORS, 19 PROC_GET_ELEMHIDE_SELECTORS,
19 PROC_AVAILABLE_SUBSCRIPTIONS, 20 PROC_AVAILABLE_SUBSCRIPTIONS,
20 PROC_LISTED_SUBSCRIPTIONS, 21 PROC_LISTED_SUBSCRIPTIONS,
21 PROC_SET_SUBSCRIPTION, 22 PROC_SET_SUBSCRIPTION,
22 PROC_UPDATE_ALL_SUBSCRIPTIONS, 23 PROC_UPDATE_ALL_SUBSCRIPTIONS,
23 PROC_GET_EXCEPTION_DOMAINS, 24 PROC_GET_EXCEPTION_DOMAINS,
24 PROC_IS_WHITELISTED_URL, 25 PROC_IS_WHITELISTED_URL,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 enum Mode {MODE_CREATE, MODE_CONNECT}; 184 enum Mode {MODE_CREATE, MODE_CONNECT};
184 185
185 Pipe(const std::wstring& name, Mode mode); 186 Pipe(const std::wstring& name, Mode mode);
186 ~Pipe(); 187 ~Pipe();
187 188
188 InputBuffer ReadMessage(); 189 InputBuffer ReadMessage();
189 void WriteMessage(OutputBuffer& message); 190 void WriteMessage(OutputBuffer& message);
190 191
191 protected: 192 protected:
192 HANDLE pipe; 193 HANDLE pipe;
194 PSECURITY_DESCRIPTOR securitydescriptor;
Wladimir Palant 2013/09/17 07:53:48 My comment hasn't been addressed: Why do we need t
193 }; 195 };
194 } 196 }
195 197
196 #endif 198 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld