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

Issue 9998007: Initial libadblockplus integration (Closed)

Created:
April 1, 2013, 9:55 p.m. by Oleksandr
Modified:
Nov. 12, 2013, 10:02 a.m.
Visibility:
Public.

Description

Initial libadblockplus integration

Patch Set 1 #

Total comments: 20

Patch Set 2 : Subscription changes and filter management cleanup #

Patch Set 3 : More integration, reflecting latest libadblockplus changes #

Patch Set 4 : Whitelisting management #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -675 lines) Patch
M AdPlugin.sln View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M Shared/AdblockPlusClient.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M Shared/PluginClass.cpp View 1 2 3 2 chunks +0 lines, -128 lines 0 comments Download
M Shared/PluginConfiguration.h View 1 2 3 2 chunks +0 lines, -15 lines 0 comments Download
M Shared/PluginConfiguration.cpp View 1 2 3 4 chunks +0 lines, -99 lines 0 comments Download
M Shared/PluginSettings.h View 1 2 3 3 chunks +3 lines, -21 lines 0 comments Download
M Shared/PluginSettings.cpp View 1 2 3 9 chunks +37 lines, -375 lines 0 comments Download
M Shared/PluginTabBase.cpp View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M Shared/PluginTypedef.h View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
M Shared/PluginUserSettings.cpp View 1 2 3 3 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 4
Felix Dahlke
I don't really see the subscription management functions being called anywhere, did I miss them? ...
April 3, 2013, 5:35 a.m. (2013-04-03 05:35:27 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/9998007/diff/1/AdBlocker/AdBlocker.vcxproj File AdBlocker/AdBlocker.vcxproj (right): http://codereview.adblockplus.org/9998007/diff/1/AdBlocker/AdBlocker.vcxproj#newcode810 AdBlocker/AdBlocker.vcxproj:810: <ProjectReference Include="..\..\V8\MSVS\libadblockplus.vcxproj"> Actually, this seems to assume a particular ...
April 3, 2013, 12:42 p.m. (2013-04-03 12:42:19 UTC) #2
Felix Dahlke
http://codereview.adblockplus.org/9998007/diff/1/AdBlocker/AdBlocker.vcxproj File AdBlocker/AdBlocker.vcxproj (right): http://codereview.adblockplus.org/9998007/diff/1/AdBlocker/AdBlocker.vcxproj#newcode810 AdBlocker/AdBlocker.vcxproj:810: <ProjectReference Include="..\..\V8\MSVS\libadblockplus.vcxproj"> On 2013/04/03 12:42:19, Wladimir Palant wrote: > ...
April 3, 2013, 12:51 p.m. (2013-04-03 12:51:04 UTC) #3
Oleksandr
April 3, 2013, 1:12 p.m. (2013-04-03 13:12:17 UTC) #4
http://codereview.adblockplus.org/9998007/diff/1/AdPlugin.sln
File AdPlugin.sln (right):

http://codereview.adblockplus.org/9998007/diff/1/AdPlugin.sln#newcode21
AdPlugin.sln:21: Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "abpshell",
"..\V8\MSVS\abpshell.vcxproj", "{B8C5ABC4-2076-B368-19EB-531BAE26CEF1}"
It would be great to have them in the solution, for various reasons. My bad, I
should have removed them first, since we don't have a subrepo yet, but I plan
for them to remain here. 


On 2013/04/03 05:35:27, Felix H. Dahlke wrote:
> How come all these projects where linked already?

http://codereview.adblockplus.org/9998007/diff/1/Shared/AdblockPlusClient.h
File Shared/AdblockPlusClient.h (right):

http://codereview.adblockplus.org/9998007/diff/1/Shared/AdblockPlusClient.h#n...
Shared/AdblockPlusClient.h:34: 
To be honest, these 2 classes LibFileReader and CerrErrorCallback are straight
from abpshell project. I just used them as placeholders, to have basic filtering
and hiding done through libadblockplus in the meantime. All comments are valid
of course.

http://codereview.adblockplus.org/9998007/diff/1/Shared/PluginFilter.cpp
File Shared/PluginFilter.cpp (right):

http://codereview.adblockplus.org/9998007/diff/1/Shared/PluginFilter.cpp#newc...
Shared/PluginFilter.cpp:1204: src.OemToCharA();
I've used CT2CA in the end (not included in this patchset). Wladimir it's
multibyte string, not really ASCII. So it supports UTF-8.

On 2013/04/03 12:51:04, Felix H. Dahlke wrote:
> On 2013/04/03 12:42:19, Wladimir Palant wrote:
> > Are we really getting all URLs as ASCII? What about IDNs
>
(http://%25D1%2580%25D0%25BE%25D1%2581%25D1%2581%25D0%25B8%25D1%258F.%25D1%2580%25D1%2584/),
do
> > we get them as Punycode or are they completely broken?
> 
> The problem is that ABP for IE uses UTF-16 internally (like most Windows
> programs), but libadblockplus uses UTF-8. We talked about converting to/from
> UTF-8 whenever we interface with libadblockplus, but I thought it's fine to
just
> support ASCII URLs for now and revisit this a bit later. Then again, it's
> probably not a huge deal to get it right now.

Powered by Google App Engine
This is Rietveld