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

Issue 219613002: Add support for matching query parameters in URLMatcher (Closed)

Created:
6 years, 8 months ago by kaliamoorthi
Modified:
6 years, 7 months ago
CC:
chromium-reviews, Andrew Wilson, vabr (Chromium), Joao da Silva
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add support for matching query parameters in URLMatcher This CL modifies the url_matcher to support matching query key=value pattern. BUG=349997 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263230

Patch Set 1 #

Total comments: 13

Patch Set 2 : Fixes the review comments from Dominic and Joao #

Total comments: 1

Patch Set 3 : Makes the changes backward compatible #

Total comments: 4

Patch Set 4 : Splits the implementation of queryContains and queryContainsExact #

Patch Set 5 : Adds the complete query element match framework to URL matcher #

Total comments: 4

Patch Set 6 : Fixes nits from joao, and some changes for performance improvement. #

Total comments: 10

Patch Set 7 : Fixes comments from Dominic #

Total comments: 2

Patch Set 8 : Fixes nits #

Total comments: 1

Patch Set 9 : Fixes nit from Dominic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+567 lines, -10 lines) Patch
M components/url_matcher/url_matcher.h View 1 2 3 4 5 6 4 chunks +69 lines, -0 lines 0 comments Download
M components/url_matcher/url_matcher.cc View 1 2 3 4 5 6 7 8 15 chunks +221 lines, -10 lines 0 comments Download
M components/url_matcher/url_matcher_unittest.cc View 1 2 3 4 5 6 1 chunk +277 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
kaliamoorthi
PTAL
6 years, 8 months ago (2014-03-31 16:39:55 UTC) #1
battre
+Jeffrey: This is not 100% compatible with the current API which is already exposed via ...
6 years, 8 months ago (2014-04-01 08:22:59 UTC) #2
Joao da Silva
https://codereview.chromium.org/219613002/diff/1/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/1/components/url_matcher/url_matcher.cc#newcode253 components/url_matcher/url_matcher.cc:253: std::string PrepareQuery(std::string query, bool prepend_query_start = true) { Default ...
6 years, 8 months ago (2014-04-01 09:18:46 UTC) #3
battre
https://codereview.chromium.org/219613002/diff/1/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/1/components/url_matcher/url_matcher.cc#newcode253 components/url_matcher/url_matcher.cc:253: std::string PrepareQuery(std::string query, bool prepend_query_start = true) { On ...
6 years, 8 months ago (2014-04-01 09:29:40 UTC) #4
kaliamoorthi
PTAL https://codereview.chromium.org/219613002/diff/1/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/1/components/url_matcher/url_matcher.cc#newcode253 components/url_matcher/url_matcher.cc:253: std::string PrepareQuery(std::string query, bool prepend_query_start = true) { ...
6 years, 8 months ago (2014-04-01 13:11:16 UTC) #5
battre
LGTM but please wait for Jeffrey's opinion. https://codereview.chromium.org/219613002/diff/20001/chrome/common/extensions/api/events.json File chrome/common/extensions/api/events.json (right): https://codereview.chromium.org/219613002/diff/20001/chrome/common/extensions/api/events.json#newcode265 chrome/common/extensions/api/events.json:265: "description": "Matches ...
6 years, 8 months ago (2014-04-01 14:46:07 UTC) #6
kaliamoorthi
PTAL. I have made the CL backward compatible in this revision.
6 years, 8 months ago (2014-04-01 17:18:04 UTC) #7
Jeffrey Yasskin
On 2014/04/01 08:22:59, battre wrote: > +Jeffrey: This is not 100% compatible with the current ...
6 years, 8 months ago (2014-04-01 18:50:20 UTC) #8
Joao da Silva
https://codereview.chromium.org/219613002/diff/30001/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/30001/components/url_matcher/url_matcher.cc#newcode158 components/url_matcher/url_matcher.cc:158: const char kQuerySeperator = '&'; kQuerySeparator
6 years, 8 months ago (2014-04-02 07:46:58 UTC) #9
battre
https://codereview.chromium.org/219613002/diff/30001/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/30001/components/url_matcher/url_matcher.cc#newcode261 components/url_matcher/url_matcher.cc:261: .find(string_pattern_->pattern()) != std::string::npos; I think with the new syntax ...
6 years, 8 months ago (2014-04-02 08:14:54 UTC) #10
kaliamoorthi
PTAL https://codereview.chromium.org/219613002/diff/30001/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/30001/components/url_matcher/url_matcher.cc#newcode158 components/url_matcher/url_matcher.cc:158: const char kQuerySeperator = '&'; On 2014/04/02 07:46:59, ...
6 years, 8 months ago (2014-04-02 10:56:52 UTC) #11
kaliamoorthi
The new patch includes most changes needed for fixing bug 349997 in URLmatcher. The changes ...
6 years, 8 months ago (2014-04-04 15:14:08 UTC) #12
Joao da Silva
Some nits inline. I'm not really familiar with this code to review it. https://codereview.chromium.org/219613002/diff/110001/components/url_matcher/url_matcher.h File ...
6 years, 8 months ago (2014-04-07 15:12:39 UTC) #13
kaliamoorthi
A friendly reminder for the owners for review. Also, fixes some nits from joao. PTAL. ...
6 years, 8 months ago (2014-04-08 09:28:52 UTC) #14
battre
https://codereview.chromium.org/219613002/diff/170001/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/170001/components/url_matcher/url_matcher.cc#newcode612 components/url_matcher/url_matcher.cc:612: return false; The previous lines can be simplified to ...
6 years, 8 months ago (2014-04-08 10:51:21 UTC) #15
battre
https://codereview.chromium.org/219613002/diff/170001/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/170001/components/url_matcher/url_matcher.cc#newcode769 components/url_matcher/url_matcher.cc:769: // cycles. On 2014/04/08 10:51:21, battre wrote: > I ...
6 years, 8 months ago (2014-04-08 11:20:19 UTC) #16
kaliamoorthi
PTAL https://codereview.chromium.org/219613002/diff/170001/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/170001/components/url_matcher/url_matcher.cc#newcode612 components/url_matcher/url_matcher.cc:612: return false; On 2014/04/08 10:51:21, battre wrote: > ...
6 years, 8 months ago (2014-04-08 12:14:23 UTC) #17
Bernhard Bauer
The subject of this CL doesn't really parse, and the description doesn't contain any more ...
6 years, 8 months ago (2014-04-09 08:42:38 UTC) #18
kaliamoorthi
Fixes few nits
6 years, 8 months ago (2014-04-09 11:01:06 UTC) #19
kaliamoorthi
On 2014/04/09 11:01:06, kaliamoorthi wrote: > Fixes few nits PTAL
6 years, 8 months ago (2014-04-09 11:01:32 UTC) #20
Bernhard Bauer
LGTM, thanks!
6 years, 8 months ago (2014-04-09 11:10:08 UTC) #21
kaliamoorthi
On 2014/04/09 11:10:08, Bernhard Bauer wrote: > LGTM, thanks! Thank you all for reviewing. Hi ...
6 years, 8 months ago (2014-04-09 12:20:25 UTC) #22
battre
Yes, thank you! https://codereview.chromium.org/219613002/diff/230001/components/url_matcher/url_matcher.cc File components/url_matcher/url_matcher.cc (right): https://codereview.chromium.org/219613002/diff/230001/components/url_matcher/url_matcher.cc#newcode768 components/url_matcher/url_matcher.cc:768: // are not found, no need ...
6 years, 8 months ago (2014-04-11 07:10:08 UTC) #23
battre
On 2014/04/11 07:10:08, battre wrote: > Yes, thank you! > > https://codereview.chromium.org/219613002/diff/230001/components/url_matcher/url_matcher.cc > File components/url_matcher/url_matcher.cc ...
6 years, 8 months ago (2014-04-11 07:10:40 UTC) #24
battre
LGTM (to be explicit)
6 years, 8 months ago (2014-04-11 08:20:47 UTC) #25
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 8 months ago (2014-04-11 08:47:05 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/219613002/250001
6 years, 8 months ago (2014-04-11 08:47:16 UTC) #27
commit-bot: I haz the power
6 years, 8 months ago (2014-04-11 13:45:05 UTC) #28
Message was sent while issue was closed.
Change committed as 263230

Powered by Google App Engine
This is Rietveld 408576698