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

Issue 156963003: Support replacement of IP address resolutions via command line flag (Closed)

Created:
6 years, 10 months ago by jar (doing other things)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, mmenke
Visibility:
Public.

Description

Support replacement of IP address resolutions via command line flag Provide a command line flag that can accept a list or range of resolution IP address (such as those for a known CDN), and place an alternative resolution at the start of the resolution list (driving towrads a test server). r=wtc BUG=342116 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252289

Patch Set 1 #

Patch Set 2 : Support wild card and square bracket syntax #

Patch Set 3 : #

Patch Set 4 : Remove typos #

Patch Set 5 : Factor out ip_pattern and fix try build #

Patch Set 6 : fix lint/compile issue #

Patch Set 7 : Add explicit unit tests for ip_pattern #

Patch Set 8 : Added more tests #

Patch Set 9 : Use sub-method for component parsing #

Patch Set 10 : Transition to linked lists (from vector) to DISALLOW_COPY_AND_ASSIGN #

Patch Set 11 : General cleanup #

Total comments: 101

Patch Set 12 : Respond to rch and wtc comments #

Patch Set 13 : remove use of back() and front() string methods #

Total comments: 19

Patch Set 14 : Respond to comments by wtc and rch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1117 lines, -11 lines) Patch
M chrome/browser/io_thread.cc View 3 chunks +24 lines, -11 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A net/base/ip_mapping_rules.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +90 lines, -0 lines 0 comments Download
A net/base/ip_mapping_rules.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +120 lines, -0 lines 0 comments Download
A net/base/ip_mapping_rules_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +307 lines, -0 lines 0 comments Download
A net/base/ip_pattern.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +70 lines, -0 lines 0 comments Download
A net/base/ip_pattern.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +188 lines, -0 lines 0 comments Download
A net/base/ip_pattern_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +160 lines, -0 lines 0 comments Download
A net/dns/mapped_ip_resolver.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +76 lines, -0 lines 0 comments Download
A net/dns/mapped_ip_resolver.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +69 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
jar (doing other things)
Wan-teh: PTAL Eric: This is very similar (analogous) to your host-mapping code, and you may ...
6 years, 10 months ago (2014-02-11 19:32:41 UTC) #1
wtc
Patch set 11 LGTM. I hope we can find a better name than "IP resolver". ...
6 years, 10 months ago (2014-02-11 23:52:30 UTC) #2
wtc
https://chromiumcodereview.appspot.com/156963003/diff/950001/net/base/ip_mapping_rules.h File net/base/ip_mapping_rules.h (right): https://chromiumcodereview.appspot.com/156963003/diff/950001/net/base/ip_mapping_rules.h#newcode47 net/base/ip_mapping_rules.h:47: // HEX_PATTERN: HEX_COMPONENT | "[" HEX_GROUP_PATTERN "]" | "[*]" ...
6 years, 10 months ago (2014-02-12 00:11:15 UTC) #3
Ryan Hamilton
https://codereview.chromium.org/156963003/diff/950001/net/base/ip_mapping_rules.h File net/base/ip_mapping_rules.h (right): https://codereview.chromium.org/156963003/diff/950001/net/base/ip_mapping_rules.h#newcode73 net/base/ip_mapping_rules.h:73: MapRule* first_rule_; nit: instead of implementing a linked-list manually, ...
6 years, 10 months ago (2014-02-12 00:44:02 UTC) #4
eroman
I have some concerns with this: * Multiple rules can be given, however only the ...
6 years, 10 months ago (2014-02-12 21:38:20 UTC) #5
jar (doing other things)
On 2014/02/12 21:38:20, eroman wrote: > I have some concerns with this: > > * ...
6 years, 10 months ago (2014-02-15 21:13:03 UTC) #6
jar (doing other things)
Wan Teh: Great and detailed review!!!! Thanks! PTAL Ryan: switched to using std::vector: PTAL https://chromiumcodereview.appspot.com/156963003/diff/950001/net/base/ip_mapping_rules.cc ...
6 years, 10 months ago (2014-02-15 21:14:56 UTC) #7
jar (doing other things)
Wan Teh: Great and detailed review!!!! Thanks! PTAL Ryan: switched to using std::vector: PTAL
6 years, 10 months ago (2014-02-15 21:14:59 UTC) #8
Ryan Hamilton
I'm happy to let eroman run with the review of this CL, so I just ...
6 years, 10 months ago (2014-02-19 00:11:48 UTC) #9
wtc
Patch set 13 LGTM. I only reviewed the diffs between patch sets 11 and 13. ...
6 years, 10 months ago (2014-02-19 00:24:11 UTC) #10
jar (doing other things)
jam: I need a (mostly rubber stamp?) owner review for chrome_switches.* and io_thread.cc The switches ...
6 years, 10 months ago (2014-02-19 02:47:03 UTC) #11
wtc
Patch set 14 LGTM.
6 years, 10 months ago (2014-02-19 17:59:30 UTC) #12
jar (doing other things)
darin: Can you give a rubber stamp on chrome_switches.* and io_thread? jam@ is OOO.
6 years, 10 months ago (2014-02-19 20:49:32 UTC) #13
sky
LGTM for io_thread. I'm not an owner of content/public.
6 years, 10 months ago (2014-02-19 23:50:49 UTC) #14
Charlie Reis
content/ LGTM
6 years, 10 months ago (2014-02-19 23:55:31 UTC) #15
jar (doing other things)
The CQ bit was checked by jar@chromium.org
6 years, 10 months ago (2014-02-20 02:23:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/156963003/1510001
6 years, 10 months ago (2014-02-20 02:31:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/156963003/1510001
6 years, 10 months ago (2014-02-20 05:20:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/156963003/1510001
6 years, 10 months ago (2014-02-20 09:20:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/156963003/1510001
6 years, 10 months ago (2014-02-20 12:36:39 UTC) #20
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 17:25:55 UTC) #21
Message was sent while issue was closed.
Change committed as 252289

Powered by Google App Engine
This is Rietveld 408576698