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

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 29419629: Issue 5164 - Remove NotificationPtr (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Updated following review feedback Created April 21, 2017, 4:29 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 | « no previous file | include/AdblockPlus/Notification.h » ('j') | test/Notification.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/FilterEngine.h
===================================================================
--- a/include/AdblockPlus/FilterEngine.h
+++ b/include/AdblockPlus/FilterEngine.h
@@ -209,17 +209,17 @@
* Container of name-value pairs representing a set of preferences.
*/
typedef std::map<std::string, AdblockPlus::JsValue> Prefs;
/**
* Callback type invoked when a new notification should be shown.
* The parameter is the Notification object to be shown.
*/
- typedef std::function<void(const NotificationPtr&)> ShowNotificationCallback;
+ typedef std::function<void(Notification&)> ShowNotificationCallback;
/**
* Callback function returning false when current connection is not
* allowedConnectionType, e.g. because it is a metered connection.
*/
typedef std::function<bool(const std::string* allowedConnectionType)> IsConnectionAllowedCallback;
/**
« no previous file with comments | « no previous file | include/AdblockPlus/Notification.h » ('j') | test/Notification.cpp » ('J')

Powered by Google App Engine
This is Rietveld