| LEFT | RIGHT | 
| (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 /** |   18 /** | 
|   19  * @fileOverview Element hiding implementation. |   19  * @fileOverview Element hiding implementation. | 
|   20  */ |   20  */ | 
|   21  |   21  | 
|   22 #pragma once |   22 #pragma once | 
|   23  |   23  | 
|   24 #include <vector> |   24 #include <vector> | 
|   25  |   25  | 
 |   26 #include "base.h" | 
|   26 #include "bindings/runtime.h" |   27 #include "bindings/runtime.h" | 
|   27 #include "intrusive_ptr.h" |   28 #include "intrusive_ptr.h" | 
|   28 #include "StringMap.h" |   29 #include "StringMap.h" | 
|   29 #include "filter/Filter.h" |   30 #include "filter/Filter.h" | 
|   30 #include "filter/ElemHideBase.h" |   31 #include "filter/ElemHideBase.h" | 
|   31 #include "filter/ElemHideException.h" |   32 #include "filter/ElemHideException.h" | 
 |   33  | 
 |   34 ABP_NS_BEGIN | 
|   32  |   35  | 
|   33 class ElemHide_SelectorList : public ref_counted |   36 class ElemHide_SelectorList : public ref_counted | 
|   34 { |   37 { | 
|   35   std::vector<ElemHideBasePtr> mSelectors; |   38   std::vector<ElemHideBasePtr> mSelectors; | 
|   36 public: |   39 public: | 
|   37   size_t BINDINGS_EXPORTED GetSelectorCount() const |   40   size_t BINDINGS_EXPORTED GetSelectorCount() const | 
|   38   { |   41   { | 
|   39     return mSelectors.size(); |   42     return mSelectors.size(); | 
|   40   } |   43   } | 
|   41   OwnedString BINDINGS_EXPORTED SelectorAt(size_t idx) const; |   44   OwnedString BINDINGS_EXPORTED SelectorAt(size_t idx) const; | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   96   ElemHide_SelectorList* BINDINGS_EXPORTED GetSelectorsForDomain(const String& d
     omain, |   99   ElemHide_SelectorList* BINDINGS_EXPORTED GetSelectorsForDomain(const String& d
     omain, | 
|   97                                                                  Criteria criter
     ia) const; |  100                                                                  Criteria criter
     ia) const; | 
|   98   ElemHide_SelectorList* BINDINGS_EXPORTED GetUnconditionalSelectors() const; |  101   ElemHide_SelectorList* BINDINGS_EXPORTED GetUnconditionalSelectors() const; | 
|   99  |  102  | 
|  100   ElemHideException* GetException(const ElemHideBase& filter, |  103   ElemHideException* GetException(const ElemHideBase& filter, | 
|  101                                   DependentString& docDomain) const; |  104                                   DependentString& docDomain) const; | 
|  102  |  105  | 
|  103 private: |  106 private: | 
|  104   void AddToFiltersByDomain(const ElemHideBasePtr & filter); |  107   void AddToFiltersByDomain(const ElemHideBasePtr & filter); | 
|  105 }; |  108 }; | 
|  106  |  109 ABP_NS_END | 
| LEFT | RIGHT |