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

Delta Between Two Patch Sets: compiled/ElemHideEmulation.h

Issue 29613616: Issue 6064 - Put C++ code into a configurable namespace (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Left Patch Set: address comments Created Nov. 22, 2017, 9:36 a.m.
Right Patch Set: rebase Created Feb. 6, 2018, 9:54 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 #pragma once 18 #pragma once
19 19
20 #include <vector> 20 #include <vector>
21 21
22 #include "base.h"
22 #include "bindings/runtime.h" 23 #include "bindings/runtime.h"
23 #include "intrusive_ptr.h" 24 #include "intrusive_ptr.h"
24 #include "filter/ElemHideBase.h" 25 #include "filter/ElemHideBase.h"
26
27 ABP_NS_BEGIN
25 28
26 class ElemHide; 29 class ElemHide;
27 30
28 class ElemHideEmulation_FilterList : public ref_counted 31 class ElemHideEmulation_FilterList : public ref_counted
29 { 32 {
30 std::vector<ElemHideBasePtr> mFilters; 33 std::vector<ElemHideBasePtr> mFilters;
31 public: 34 public:
32 size_t BINDINGS_EXPORTED GetFilterCount() const 35 size_t BINDINGS_EXPORTED GetFilterCount() const
33 { 36 {
34 return mFilters.size(); 37 return mFilters.size();
(...skipping 23 matching lines...) Expand all
58 static ElemHideEmulation* BINDINGS_EXPORTED Create() 61 static ElemHideEmulation* BINDINGS_EXPORTED Create()
59 { 62 {
60 return new ElemHideEmulation(); 63 return new ElemHideEmulation();
61 } 64 }
62 65
63 void BINDINGS_EXPORTED Add(ElemHideBase&); 66 void BINDINGS_EXPORTED Add(ElemHideBase&);
64 void BINDINGS_EXPORTED Remove(ElemHideBase&); 67 void BINDINGS_EXPORTED Remove(ElemHideBase&);
65 void BINDINGS_EXPORTED Clear(); 68 void BINDINGS_EXPORTED Clear();
66 ElemHideEmulation_FilterList* BINDINGS_EXPORTED GetRulesForDomain(const ElemHi de&, DependentString&); 69 ElemHideEmulation_FilterList* BINDINGS_EXPORTED GetRulesForDomain(const ElemHi de&, DependentString&);
67 }; 70 };
71 ABP_NS_END
LEFTRIGHT

Powered by Google App Engine
This is Rietveld