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

Delta Between Two Patch Sets: compiled/ElemHideEmulation.h

Issue 29594607: Issue 5143 - Convert ElemHideEmulation to C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Left Patch Set: Rebase. Review comments addressed. Created Jan. 25, 2018, 7:04 p.m.
Right Patch Set: Review comments addressed Created Jan. 30, 2018, 5:37 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « compiled/ElemHide.h ('k') | compiled/ElemHideEmulation.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 { 47 {
48 mFilters.push_back(filter); 48 mFilters.push_back(filter);
49 } 49 }
50 50
51 }; 51 };
52 52
53 class ElemHideEmulation : public ref_counted 53 class ElemHideEmulation : public ref_counted
54 { 54 {
55 StringMap<ElemHideBasePtr> mFilters; 55 StringMap<ElemHideBasePtr> mFilters;
56 56
57 static ElemHideEmulation* mInstance;
sergei 2018/01/30 16:00:47 It's not used, could you please remove it?
hub 2018/01/30 17:37:58 Done.
58
59 public: 57 public:
60 static ElemHideEmulation* BINDINGS_EXPORTED Create() 58 static ElemHideEmulation* BINDINGS_EXPORTED Create()
61 { 59 {
62 return new ElemHideEmulation(); 60 return new ElemHideEmulation();
63 } 61 }
64 62
65 void BINDINGS_EXPORTED Add(ElemHideBase&); 63 void BINDINGS_EXPORTED Add(ElemHideBase&);
66 void BINDINGS_EXPORTED Remove(ElemHideBase&); 64 void BINDINGS_EXPORTED Remove(ElemHideBase&);
67 void BINDINGS_EXPORTED Clear(); 65 void BINDINGS_EXPORTED Clear();
68 ElemHideEmulation_FilterList* BINDINGS_EXPORTED GetRulesForDomain(const ElemHi de&, DependentString&); 66 ElemHideEmulation_FilterList* BINDINGS_EXPORTED GetRulesForDomain(const ElemHi de&, DependentString&);
69 }; 67 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld