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

Unified Diff: src/shared/Communication.h

Issue 10774005: Avoid duplication between AdblockPlus and AdblockPlusEngine (Closed)
Patch Set: Created May 24, 2013, 3:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/shared/Communication.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/shared/Communication.h
@@ -0,0 +1,19 @@
+#ifndef COMMUNICATION_H
+#define COMMUNICATION_H
+
+#include <string>
+#include <vector>
+#include <Windows.h>
+
+namespace Communication
+{
+ extern const std::wstring pipeName;
+ const int bufferSize = 1024;
+
+ std::string MarshalStrings(const std::vector<std::string>& strings);
+ std::vector<std::string> UnmarshalStrings(const std::string& message);
+ std::string ReadMessage(HANDLE pipe);
+ void WriteMessage(HANDLE pipe, const std::string& message);
+}
+
+#endif

Powered by Google App Engine
This is Rietveld