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

Side by Side Diff: compiled/filter/ActiveFilter.h

Issue 29532626: Issue 5603 - Support references in parameters of exported functions (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created Aug. 31, 2017, 12:36 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
OLDNEW
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 19 matching lines...) Expand all
30 {\ 30 {\
31 return name;\ 31 return name;\
32 }\ 32 }\
33 void BINDINGS_EXPORTED setter(type value)\ 33 void BINDINGS_EXPORTED setter(type value)\
34 {\ 34 {\
35 if (name != value)\ 35 if (name != value)\
36 {\ 36 {\
37 name = value;\ 37 name = value;\
38 if (FilterNotifier::Topic::topic != FilterNotifier::Topic::NONE)\ 38 if (FilterNotifier::Topic::topic != FilterNotifier::Topic::NONE)\
39 {\ 39 {\
40 FilterNotifier::FilterChange(FilterNotifier::Topic::topic, this);\ 40 FilterNotifier::FilterChange(FilterNotifier::Topic::topic, *this);\
41 }\ 41 }\
42 }\ 42 }\
43 } 43 }
44 44
45 class ActiveFilter : public Filter 45 class ActiveFilter : public Filter
46 { 46 {
47 protected: 47 protected:
48 typedef StringMap<bool> DomainMap; 48 typedef StringMap<bool> DomainMap;
49 typedef StringSet SitekeySet; 49 typedef StringSet SitekeySet;
50 void ParseDomains(const String& domains, String::value_type separator) const; 50 void ParseDomains(const String& domains, String::value_type separator) const;
(...skipping 10 matching lines...) Expand all
61 FILTER_PROPERTY(unsigned int, mHitCount, FILTER_HITCOUNT, 61 FILTER_PROPERTY(unsigned int, mHitCount, FILTER_HITCOUNT,
62 GetHitCount, SetHitCount); 62 GetHitCount, SetHitCount);
63 FILTER_PROPERTY(unsigned int, mLastHit, FILTER_LASTHIT, 63 FILTER_PROPERTY(unsigned int, mLastHit, FILTER_LASTHIT,
64 GetLastHit, SetLastHit); 64 GetLastHit, SetLastHit);
65 bool BINDINGS_EXPORTED IsActiveOnDomain(DependentString& docDomain, 65 bool BINDINGS_EXPORTED IsActiveOnDomain(DependentString& docDomain,
66 const String& sitekey) const; 66 const String& sitekey) const;
67 bool BINDINGS_EXPORTED IsActiveOnlyOnDomain(DependentString& docDomain) const; 67 bool BINDINGS_EXPORTED IsActiveOnlyOnDomain(DependentString& docDomain) const;
68 bool BINDINGS_EXPORTED IsGeneric() const; 68 bool BINDINGS_EXPORTED IsGeneric() const;
69 OwnedString BINDINGS_EXPORTED Serialize() const; 69 OwnedString BINDINGS_EXPORTED Serialize() const;
70 }; 70 };
OLDNEW

Powered by Google App Engine
This is Rietveld