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

Issue 10727002: Get rid of dependencies on v8.h in public header files (Closed)

Created:
May 23, 2013, 2:43 p.m. by Wladimir Palant
Modified:
May 27, 2013, 9:37 a.m.
Reviewers:
Felix Dahlke
Visibility:
Public.

Description

This removes JsEngine::Context and JsError from public header files; then the remaining dependencies on V8 are replaced by forward declarations (requires using auto_ptr for two properties unfortunately).

Patch Set 1 #

Patch Set 2 : Added helper class to make using v8 values via auto_ptr less awkward #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -123 lines) Patch
M include/AdblockPlus/JsEngine.h View 1 2 chunks +13 lines, -21 lines 1 comment Download
M include/AdblockPlus/JsValue.h View 1 2 chunks +9 lines, -2 lines 1 comment Download
A include/AdblockPlus/V8ValueHolder.h View 1 1 chunk +93 lines, -0 lines 1 comment Download
M libadblockplus.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/ConsoleJsObject.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M src/FileSystemJsObject.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
A src/JsContext.h View 1 chunk +39 lines, -0 lines 0 comments Download
A src/JsContext.cpp View 1 1 chunk +24 lines, -0 lines 0 comments Download
M src/JsEngine.cpp View 1 5 chunks +10 lines, -36 lines 0 comments Download
A src/JsError.h View 1 chunk +53 lines, -0 lines 0 comments Download
A src/JsError.cpp View 1 chunk +24 lines, -0 lines 0 comments Download
M src/JsValue.cpp View 1 1 chunk +38 lines, -52 lines 0 comments Download
M src/WebRequestJsObject.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
M test/JsEngine.cpp View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 4
Wladimir Palant
May 23, 2013, 2:43 p.m. (2013-05-23 14:43:48 UTC) #1
Wladimir Palant
May 23, 2013, 4:08 p.m. (2013-05-23 16:08:28 UTC) #2
Felix Dahlke
LGTM with some nits fixed. http://codereview.adblockplus.org/10727002/diff/3001/include/AdblockPlus/JsEngine.h File include/AdblockPlus/JsEngine.h (right): http://codereview.adblockplus.org/10727002/diff/3001/include/AdblockPlus/JsEngine.h#newcode40 include/AdblockPlus/JsEngine.h:40: template <class T> class ...
May 24, 2013, 3:45 p.m. (2013-05-24 15:45:41 UTC) #3
Wladimir Palant
May 27, 2013, 9:37 a.m. (2013-05-27 09:37:40 UTC) #4

Powered by Google App Engine
This is Rietveld