Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(220)

Issue 223093: Use ProxyUriManager in CajaCssSanitizer (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 10 months ago by johnfargo
Modified:
15 years, 10 months ago
Reviewers:
zhoresh, shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Replaces LinkRewriter with ProxyUriManager for CajaCssSanitizer. The actual implementation will come from a prior CL updating SanitizingProxyingLinkRewriter to be a ProxyUriManager.

Patch Set 1 #

Patch Set 2 : Synced to head. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -25 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/caja/CajaCssSanitizer.java View 1 8 chunks +28 lines, -9 lines 1 comment Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/CajaCssSanitizerTest.java View 1 4 chunks +14 lines, -16 lines 0 comments Download

Messages

Total messages: 4
johnfargo
15 years, 10 months ago (2010-03-02 04:55:13 UTC) #1
johnfargo
Synced to head.
15 years, 10 months ago (2010-03-03 19:48:16 UTC) #2
zhoresh
LGTM The more I read, the more I like the original interface LinkRewriter. Maybe UriManager ...
15 years, 10 months ago (2010-03-05 18:41:50 UTC) #3
johnfargo
15 years, 10 months ago (2010-03-08 22:53:52 UTC) #4
On Fri, Mar 5, 2010 at 10:41 AM, <zhoresh@gmail.com> wrote:

> LGTM
>
> The more I read, the more I like the original interface LinkRewriter.
> Maybe UriManager should at least implement the LinkRewriter interface?
>

As perhaps noted elsewhere, UriManager really is LinkRewriter, but provided
better-structured data (Uri in, Uri out), with batching. A single-item
interface could be useful though IMO that's really just a single-List-item
passthrough helper function.


>
>
>
> http://codereview.appspot.com/223093/diff/1001/2002
> File
>
>
>
java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/caja/CajaCssSanitizer.java
> (right):
>
> http://codereview.appspot.com/223093/diff/1001/2002#newcode152
>
>
java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/caja/CajaCssSanitizer.java:152:
> rewriteUri(imageRewriter, uri, linkContext));
> Maybe put rewrite function in ProxyUriManager that do what rewriteUri
> does.


(same comment as above)


>
>
> http://codereview.appspot.com/223093/show
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b