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

Side by Side Diff: include/AdblockPlus/FilterEngine.h

Issue 29391775: Issue 5013 - Improve some const-correctness (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Feedback + another small patch related. Created March 22, 2017, 4:50 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
« no previous file with comments | « no previous file | src/DefaultWebRequestCurl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 * Filter types, see https://adblockplus.org/en/filters. 45 * Filter types, see https://adblockplus.org/en/filters.
46 */ 46 */
47 enum Type {TYPE_BLOCKING, TYPE_EXCEPTION, 47 enum Type {TYPE_BLOCKING, TYPE_EXCEPTION,
48 TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION, 48 TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION,
49 TYPE_COMMENT, TYPE_INVALID}; 49 TYPE_COMMENT, TYPE_INVALID};
50 50
51 /** 51 /**
52 * Retrieves the type of this filter. 52 * Retrieves the type of this filter.
53 * @return Type of this filter. 53 * @return Type of this filter.
54 */ 54 */
55 Type GetType(); 55 Type GetType() const;
sergei 2017/03/23 10:49:56 Do you mind to put it into another commit? I think
56 56
57 /** 57 /**
58 * Checks whether this filter has been added to the list of custom filters. 58 * Checks whether this filter has been added to the list of custom filters.
59 * @return `true` if this filter has been added. 59 * @return `true` if this filter has been added.
60 */ 60 */
61 bool IsListed(); 61 bool IsListed();
62 62
63 /** 63 /**
64 * Adds this filter to the list of custom filters. 64 * Adds this filter to the list of custom filters.
65 */ 65 */
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 const JsValueList& params); 511 const JsValueList& params);
512 FilterPtr GetWhitelistingFilter(const std::string& url, 512 FilterPtr GetWhitelistingFilter(const std::string& url,
513 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; 513 ContentTypeMask contentTypeMask, const std::string& documentUrl) const;
514 FilterPtr GetWhitelistingFilter(const std::string& url, 514 FilterPtr GetWhitelistingFilter(const std::string& url,
515 ContentTypeMask contentTypeMask, 515 ContentTypeMask contentTypeMask,
516 const std::vector<std::string>& documentUrls) const; 516 const std::vector<std::string>& documentUrls) const;
517 }; 517 };
518 } 518 }
519 519
520 #endif 520 #endif
OLDNEW
« no previous file with comments | « no previous file | src/DefaultWebRequestCurl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld