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

Unified Diff: Shared/AdblockPlusClient.h

Issue 10580043: Run a single FilterEngine instance in a separate process (Closed)
Patch Set: Created May 16, 2013, 5:29 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Shared/AdblockPlusClient.h
===================================================================
--- a/Shared/AdblockPlusClient.h
+++ b/Shared/AdblockPlusClient.h
@@ -36,8 +36,6 @@
static CAdblockPlusClient* GetInstance();
- AdblockPlus::FilterEngine* GetFilterEngine();
-
// Removes the url from the list of whitelisted urls if present
// Only called from ui thread
bool ShouldBlock(CString src, int contentType, const CString& domain, bool addDebug=false);
@@ -47,6 +45,13 @@
int GetIEVersion();
+ bool Matches(const std::string& url, const std::string& contentType, const std::string& domain);
+ std::vector<std::string> GetElementHidingSelectors(std::string domain);
+ std::vector<AdblockPlus::SubscriptionPtr> FetchAvailableSubscriptions();
+ std::vector<AdblockPlus::FilterPtr> GetListedFilters();
+ AdblockPlus::FilterPtr GetFilter(std::string text);
+ std::vector<AdblockPlus::SubscriptionPtr> GetListedSubscriptions();
+ AdblockPlus::SubscriptionPtr GetSubscription(std::string url);
};
#endif // _SIMPLE_ADBLOCK_CLIENT_H_

Powered by Google App Engine
This is Rietveld