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

Unified Diff: include/AdblockPlus/JsValue.h

Issue 29391555: Issue 4948 - add possibility to not send data depending on connection properties (Closed)
Patch Set: update to libadblockplus hg:1d708e673634 Created March 27, 2017, 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
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | include/AdblockPlus/LogSystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/JsValue.h
diff --git a/include/AdblockPlus/JsValue.h b/include/AdblockPlus/JsValue.h
index c9632149822fe9d5d44ef06efc2ef1caa0555613..da68d8fb9e17bb796622baa401cdbdcbb1326fb3 100644
--- a/include/AdblockPlus/JsValue.h
+++ b/include/AdblockPlus/JsValue.h
@@ -1,6 +1,6 @@
/*
* This file is part of Adblock Plus <https://adblockplus.org/>,
- * Copyright (C) 2006-2016 Eyeo GmbH
+ * Copyright (C) 2006-2017 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
@@ -42,11 +42,13 @@ namespace AdblockPlus
* Shared smart pointer to a `JsValue` instance.
*/
typedef std::shared_ptr<JsValue> JsValuePtr;
+ typedef std::shared_ptr<const JsValue> JsConstValuePtr;
/**
* List of JavaScript values.
*/
typedef std::vector<AdblockPlus::JsValuePtr> JsValueList;
+ typedef std::vector<AdblockPlus::JsConstValuePtr> JsConstValueList;
/**
* Wrapper for JavaScript values.
@@ -121,7 +123,7 @@ namespace AdblockPlus
* @param thisPtr Optional `this` value.
* @return Value returned by the function.
*/
- JsValuePtr Call(const JsValueList& params = JsValueList(),
+ JsValuePtr Call(const JsConstValueList& params = JsConstValueList(),
AdblockPlus::JsValuePtr thisPtr = AdblockPlus::JsValuePtr()) const;
/**
@@ -130,7 +132,7 @@ namespace AdblockPlus
* @param arg A single required parameter.
* @return Value returned by the function.
*/
- JsValuePtr Call(const JsValue& arg) const;
+ JsValuePtr Call(const JsConstValuePtr& arg) const;
v8::Local<v8::Value> UnwrapValue() const;
protected:
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | include/AdblockPlus/LogSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld