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

Issue 10259001: XMLHttpRequest API (Closed)

Created:
April 10, 2013, 3:19 p.m. by Wladimir Palant
Modified:
April 12, 2013, 11:17 a.m.
Reviewers:
Felix Dahlke, Oleksandr
Visibility:
Public.

Description

This is only the starting point: a _request.GET() method is being injected now, a JS-based XMLHttpRequest implementation needs to be built around that. Also, a callback to retrieve URLs has been added but no implementations for this callback yet (there will be three implementations from the look of it).

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -31 lines) Patch
M include/AdblockPlus.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/AdblockPlus/JsEngine.h View 1 chunk +4 lines, -2 lines 0 comments Download
A include/AdblockPlus/WebRequest.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
M libadblockplus.gyp View 1 2 chunks +4 lines, -1 line 0 comments Download
M shell/src/Main.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/GlobalJsObject.h View 1 chunk +6 lines, -2 lines 0 comments Download
M src/GlobalJsObject.cpp View 1 2 chunks +6 lines, -1 line 0 comments Download
M src/JsEngine.cpp View 2 chunks +11 lines, -7 lines 0 comments Download
A src/WebRequest.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
A src/WebRequestJsObject.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
A src/WebRequestJsObject.cpp View 1 1 chunk +133 lines, -0 lines 0 comments Download
M test/ConsoleJsObject.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M test/FilterEngineStubs.cpp View 1 5 chunks +6 lines, -6 lines 0 comments Download
M test/GlobalJsObject.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M test/JsEngine.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
A test/WebRequest.cpp View 1 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 5
Wladimir Palant
April 10, 2013, 3:19 p.m. (2013-04-10 15:19:34 UTC) #1
Felix Dahlke
http://codereview.adblockplus.org/10259001/diff/1/include/AdblockPlus/WebRequest.h File include/AdblockPlus/WebRequest.h (right): http://codereview.adblockplus.org/10259001/diff/1/include/AdblockPlus/WebRequest.h#newcode2 include/AdblockPlus/WebRequest.h:2: #define ADBLOCKPLUS_WEB_REQUEST_H We usually have ADBLOCK_PLUS (with an underscore) ...
April 11, 2013, 9:33 a.m. (2013-04-11 09:33:42 UTC) #2
Wladimir Palant
All review comments should be addressed now. http://codereview.adblockplus.org/10259001/diff/1/include/AdblockPlus/WebRequest.h File include/AdblockPlus/WebRequest.h (right): http://codereview.adblockplus.org/10259001/diff/1/include/AdblockPlus/WebRequest.h#newcode2 include/AdblockPlus/WebRequest.h:2: #define ADBLOCKPLUS_WEB_REQUEST_H ...
April 11, 2013, 4:32 p.m. (2013-04-11 16:32:32 UTC) #3
Felix Dahlke
LGTM, I don't mind the include guard since it's already inconsistent. http://codereview.adblockplus.org/10259001/diff/1/include/AdblockPlus/WebRequest.h File include/AdblockPlus/WebRequest.h (right): ...
April 11, 2013, 5:39 p.m. (2013-04-11 17:39:27 UTC) #4
Oleksandr
April 11, 2013, 5:53 p.m. (2013-04-11 17:53:04 UTC) #5
LGTM for now. I might have some comments a bit later (while working on Windows
implementation)

On 2013/04/11 17:39:27, Felix H. Dahlke wrote:
> LGTM, I don't mind the include guard since it's already inconsistent.
> 
>
http://codereview.adblockplus.org/10259001/diff/1/include/AdblockPlus/WebRequ...
> File include/AdblockPlus/WebRequest.h (right):
> 
>
http://codereview.adblockplus.org/10259001/diff/1/include/AdblockPlus/WebRequ...
> include/AdblockPlus/WebRequest.h:2: #define ADBLOCKPLUS_WEB_REQUEST_H
> On 2013/04/11 16:32:33, Wladimir Palant wrote:
> > On 2013/04/11 09:33:42, Felix H. Dahlke wrote:
> > > We usually have ADBLOCK_PLUS (with an underscore) as a prefix for include
> > > guards.
> > 
> > You better check that again, all include files have ADBLOCKPLUS as prefix.
> 
> No, not really. Just the one in Thread.h for some reason.

Powered by Google App Engine
This is Rietveld