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

Side by Side Diff: src/shared/ContentType.cpp

Issue 5316782940225536: Issue 1557 - Update to the recent libadblockplus to reduce additional updates in the logic later. (Closed)
Patch Set: link addon with libadblockplus Created Jan. 29, 2015, 4:05 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
« src/engine/Main.cpp ('K') | « src/shared/ContentType.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include "ContentType.h"
2 #include "Communication.h"
3
4 using AdblockPlus::FilterEngine;
5 using Communication::InputBuffer;
6 using Communication::OutputBuffer;
7
8 InputBuffer& operator>>(InputBuffer& in, FilterEngine::ContentType& contentType)
Oleksandr 2015/01/30 12:39:11 This seems like a lot of code for very little purp
sergei 2015/01/30 13:20:06 I've removed these files.
Eric 2015/02/02 06:58:27 Sergei added this at my suggestion in order to gat
9 {
10 int32_t type;
11 in >> type;
12 contentType = static_cast<FilterEngine::ContentType>(contentType);
13 return in;
14 }
15
16 OutputBuffer& operator<<(OutputBuffer& out, FilterEngine::ContentType contentTyp e)
17 {
18 return out << static_cast<int32_t>(contentType);
19 }
OLDNEW
« src/engine/Main.cpp ('K') | « src/shared/ContentType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld