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

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

Issue 29410664: Issue 5013 - Use const JsValue and pass reference where applicable (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Created April 12, 2017, 3:24 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 | include/AdblockPlus/JsEngine.h » ('j') | include/AdblockPlus/JsValue.h » ('J')
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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 JsEnginePtr jsEngine; 527 JsEnginePtr jsEngine;
528 bool firstRun; 528 bool firstRun;
529 int updateCheckId; 529 int updateCheckId;
530 static const std::map<ContentType, std::string> contentTypes; 530 static const std::map<ContentType, std::string> contentTypes;
531 531
532 explicit FilterEngine(const JsEnginePtr& jsEngine); 532 explicit FilterEngine(const JsEnginePtr& jsEngine);
533 533
534 FilterPtr CheckFilterMatch(const std::string& url, 534 FilterPtr CheckFilterMatch(const std::string& url,
535 ContentTypeMask contentTypeMask, 535 ContentTypeMask contentTypeMask,
536 const std::string& documentUrl) const; 536 const std::string& documentUrl) const;
537 void UpdateAvailable(const UpdateAvailableCallback& callback, const JsValueL ist& params) const; 537 void UpdateAvailable(const UpdateAvailableCallback& callback, const JsConstV alueList& params) const;
538 void UpdateCheckDone(const std::string& eventName, 538 void UpdateCheckDone(const std::string& eventName,
539 const UpdateCheckDoneCallback& callback, const JsValueL ist& params); 539 const UpdateCheckDoneCallback& callback, const JsConstV alueList& params);
540 void FilterChanged(const FilterChangeCallback& callback, const JsValueList& params) const; 540 void FilterChanged(const FilterChangeCallback& callback, const JsConstValueL ist& params) const;
541 void ShowNotification(const ShowNotificationCallback& callback, 541 void ShowNotification(const ShowNotificationCallback& callback,
542 const JsValueList& params) const; 542 const JsConstValueList& param) const;
543 FilterPtr GetWhitelistingFilter(const std::string& url, 543 FilterPtr GetWhitelistingFilter(const std::string& url,
544 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; 544 ContentTypeMask contentTypeMask, const std::string& documentUrl) const;
545 FilterPtr GetWhitelistingFilter(const std::string& url, 545 FilterPtr GetWhitelistingFilter(const std::string& url,
546 ContentTypeMask contentTypeMask, 546 ContentTypeMask contentTypeMask,
547 const std::vector<std::string>& documentUrls) const; 547 const std::vector<std::string>& documentUrls) const;
548 }; 548 };
549 } 549 }
550 550
551 #endif 551 #endif
OLDNEW
« no previous file with comments | « no previous file | include/AdblockPlus/JsEngine.h » ('j') | include/AdblockPlus/JsValue.h » ('J')

Powered by Google App Engine
This is Rietveld