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

Unified Diff: include/AdblockPlus/Scheduler.h

Issue 29537555: Issue 5556 - Update to use libadblockplus revision hg:566f64c8a2a8 (Closed)
Patch Set: Created Sept. 6, 2017, 8:11 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
« no previous file with comments | « include/AdblockPlus/ReferrerMapping.h ('k') | include/AdblockPlus/WebRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/Scheduler.h
diff --git a/include/AdblockPlus/Scheduler.h b/include/AdblockPlus/Scheduler.h
new file mode 100644
index 0000000000000000000000000000000000000000..1d30041f9b3f2d33dcbe1625630f48c8bf805cfe
--- /dev/null
+++ b/include/AdblockPlus/Scheduler.h
@@ -0,0 +1,33 @@
+/*
+* This file is part of Adblock Plus <https://adblockplus.org/>,
+* Copyright (C) 2006-present eyeo GmbH
+*
+* Adblock Plus is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License version 3 as
+* published by the Free Software Foundation.
+*
+* Adblock Plus is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef ADBLOCK_PLUS_SCHEDULER_H
+#define ADBLOCK_PLUS_SCHEDULER_H
+
+namespace AdblockPlus
+{
+ /**
+ * Task object which can be passed to `Scheduler` to be executed asynchronously.
+ */
+ typedef std::function<void()> SchedulerTask;
+
+ /**
+ * Scheduler object executing tasks asynchronously.
+ */
+ typedef std::function<void(const SchedulerTask&)> Scheduler;
+}
+#endif // ADBLOCK_PLUS_SCHEDULER_H
« no previous file with comments | « include/AdblockPlus/ReferrerMapping.h ('k') | include/AdblockPlus/WebRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld