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

Unified Diff: include/AdblockPlus/FilterEngine.h

Issue 29527821: Issue 5556 - Update to use libadblockplus revision hg:36e9993fa36c (Closed)
Patch Set: Created Aug. 25, 2017, 6:12 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/FileSystem.h ('k') | include/AdblockPlus/IFileSystem.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 e81ff425150d3867753920de8bdbbb785792ae09..c256823114d74c5b905dc583980952a4df0df14d 100644
--- a/include/AdblockPlus/FilterEngine.h
+++ b/include/AdblockPlus/FilterEngine.h
@@ -1,6 +1,6 @@
/*
* This file is part of Adblock Plus <https://adblockplus.org/>,
- * Copyright (C) 2006-2017 eyeo GmbH
+ * 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
@@ -51,6 +51,7 @@ namespace AdblockPlus
*/
enum Type {TYPE_BLOCKING, TYPE_EXCEPTION,
TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION,
+ TYPE_TYPE_ELEMHIDE_EMULATION,
TYPE_COMMENT, TYPE_INVALID};
/**
@@ -205,6 +206,8 @@ namespace AdblockPlus
CONTENT_TYPE_OBJECT = 16,
CONTENT_TYPE_SUBDOCUMENT = 32,
CONTENT_TYPE_DOCUMENT = 64,
+ CONTENT_TYPE_WEBSOCKET = 128,
+ CONTENT_TYPE_WEBRTC = 256,
CONTENT_TYPE_PING = 1024,
CONTENT_TYPE_XMLHTTPREQUEST = 2048,
CONTENT_TYPE_OBJECT_SUBREQUEST = 4096,
@@ -280,8 +283,8 @@ namespace AdblockPlus
};
/**
- * Callback type invoked when FilterEngine is created.
- */
+ * Callback type invoked when FilterEngine is created.
+ */
typedef std::function<void(const FilterEnginePtr&)> OnCreatedCallback;
/**
@@ -297,17 +300,10 @@ namespace AdblockPlus
const CreationParameters& parameters = CreationParameters());
/**
- * Synchronous interface to construct FilterEngine. For details see
- * asynchronous version CreateAsync.
- */
- static FilterEnginePtr Create(const JsEnginePtr& jsEngine,
- const CreationParameters& params = CreationParameters());
-
- /**
* Retrieves the `JsEngine` instance associated with this `FilterEngine`
* instance.
*/
- JsEnginePtr GetJsEngine() const { return jsEngine; }
+ JsEngine& GetJsEngine() const { return *jsEngine; }
/**
* Checks if this is the first run of the application.
« no previous file with comments | « include/AdblockPlus/FileSystem.h ('k') | include/AdblockPlus/IFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld