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

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 5797488346791936: Issue 1107 - Support notifications (Closed)
Patch Set: fix comment Created Jan. 23, 2015, 3:56 p.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
« no previous file with comments | « include/AdblockPlus.h ('k') | include/AdblockPlus/Notification.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/FilterEngine.h
diff --git a/include/AdblockPlus/FilterEngine.h b/include/AdblockPlus/FilterEngine.h
index b81433f5c9bf1b540cf837f6df1a1662bc623454..a6fa146265620ebd4faa813689ae907955092c8c 100644
--- a/include/AdblockPlus/FilterEngine.h
+++ b/include/AdblockPlus/FilterEngine.h
@@ -24,6 +24,7 @@
#include <vector>
#include <AdblockPlus/JsEngine.h>
#include <AdblockPlus/JsValue.h>
+#include <AdblockPlus/Notification.h>
#include "tr1_memory.h"
@@ -237,6 +238,14 @@ namespace AdblockPlus
std::vector<SubscriptionPtr> FetchAvailableSubscriptions() const;
/**
+ * Determines which notification is to be shown next.
+ * @param url URL to match notifications to (optional).
+ * @return Notification to be shown, or `null` if there is no any.
+ */
+ NotificationPtr GetNextNotificationToShow(
+ const std::string& url = std::string());
+
+ /**
* Checks if any active filter matches the supplied URL.
* @param url URL to match.
* @param contentType Content type of the requested resource.
« no previous file with comments | « include/AdblockPlus.h ('k') | include/AdblockPlus/Notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld