Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Issue 19704: Introduce UrlPattern. (Closed)

Created:
11 years, 10 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Introduce UrlPattern. This is basically me resuming work on issue 14106, but as it is a complete rewrite, I have started a new issue. I also added supporting JoinString() and ReplaceAll() utility functions.

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 27

Patch Set 3 : Review feedback, move url_pattern* to common since it will be used in the renderer too. #

Patch Set 4 : more feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+466 lines, -10 lines) Patch
M base/string_util.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M base/string_util.cc View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M base/string_util_unittest.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/browser.scons View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/browser.vcproj View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/chrome.xcodeproj/project.pbxproj View 7 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/common.vcproj View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/common/extensions/url_pattern.h View 1 chunk +122 lines, -0 lines 0 comments Download
A chrome/common/extensions/url_pattern.cc View 1 chunk +128 lines, -0 lines 0 comments Download
A chrome/common/extensions/url_pattern_unittest.cc View 3 1 chunk +132 lines, -0 lines 1 comment Download
M chrome/test/unit/unit_tests.scons View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/unit/unittests.vcproj View 1 2 4 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Aaron Boodman
11 years, 10 months ago (2009-01-30 10:58:31 UTC) #1
Matt Perry
looking good http://codereview.chromium.org/19704/diff/13/213 File base/string_util.h (right): http://codereview.chromium.org/19704/diff/13/213#newcode555 Line 555: std::string ReplaceAll(const std::string& in, const std::string ...
11 years, 10 months ago (2009-01-30 19:39:58 UTC) #2
Aaron Boodman
Thanks for the detailed feedback. New snapshot available. Also, I moved url_pattern to common/ because ...
11 years, 10 months ago (2009-01-30 21:44:29 UTC) #3
Matt Perry
LGTM http://codereview.chromium.org/19704/diff/13/217 File chrome/browser/extensions/url_pattern.cc (right): http://codereview.chromium.org/19704/diff/13/217#newcode32 Line 32: bool UrlPattern::Parse(const std::string& pattern) { On 2009/01/30 ...
11 years, 10 months ago (2009-01-30 23:33:14 UTC) #4
Matt Perry
11 years, 10 months ago (2009-01-31 01:29:14 UTC) #5
lgtm

http://codereview.chromium.org/19704/diff/41/51
File chrome/common/extensions/url_pattern_unittest.cc (right):

http://codereview.chromium.org/19704/diff/41/51#newcode131
Line 131: GURL("http://\xe1\x80\xbf/a\xc2\x81\xe1\xe1")));
interesting.  what does
pattern.MatchesUrl(GURL("http://foo.xn--gkd/a\xc2\x81\xel\xel")) return?  we
should specify either way.

Powered by Google App Engine
This is Rietveld 408576698