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

Issue 1860343002: SHP 1: Change SupportsSpdy dict to use SchemeHostPort as the key. No change to Pref data. (Closed)

Created:
4 years, 8 months ago by Zhongyi Shi
Modified:
4 years, 8 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, ramant (doing other things)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SHP 1: Change SupportsSpdy dict to use SchemeHostPort as the key. No change to Pref data. Hardcoded to always add "http" as scheme when loading from Pref to Cache, always drop scheme when write to Pref from Cache. BUG=600804

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Use Serialize when need canonical form. #

Patch Set 3 : use proxy server scheme, remove hardcode #

Total comments: 6

Patch Set 4 : Rename to SpdyServersMap and fix resource scheduler #

Patch Set 5 : Use SSL info to extract scheme, fix resource scheduler unittest #

Total comments: 1

Patch Set 6 : git sync #

Patch Set 7 : change hardcoded scheme from http to https #

Patch Set 8 : git sync #

Patch Set 9 : git sync #

Patch Set 10 : git sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -98 lines) Patch
M content/browser/loader/resource_scheduler.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M net/http/http_server_properties.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -3 lines 0 comments Download
M net/http/http_server_properties_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -7 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +23 lines, -23 lines 0 comments Download
M net/http/http_server_properties_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +56 lines, -27 lines 0 comments Download
M net/http/http_server_properties_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M net/http/http_server_properties_manager.cc View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -6 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +27 lines, -15 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -6 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (7 generated)
Zhongyi Shi
4 years, 8 months ago (2016-04-06 00:34:48 UTC) #3
Ryan Hamilton
Looking good. https://codereview.chromium.org/1860343002/diff/20001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/1860343002/diff/20001/net/http/http_server_properties_impl.cc#newcode267 net/http/http_server_properties_impl.cc:267: SpdyServerSchemeHostPortMap::iterator spdy_scheme_host_port = how about spdy_server? https://codereview.chromium.org/1860343002/diff/20001/net/http/http_server_properties_impl.h ...
4 years, 8 months ago (2016-04-06 19:16:08 UTC) #4
Zhongyi Shi
https://codereview.chromium.org/1860343002/diff/20001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/1860343002/diff/20001/net/http/http_server_properties_impl.cc#newcode267 net/http/http_server_properties_impl.cc:267: SpdyServerSchemeHostPortMap::iterator spdy_scheme_host_port = On 2016/04/06 19:16:08, Ryan Hamilton wrote: ...
4 years, 8 months ago (2016-04-07 00:31:18 UTC) #6
Ryan Hamilton
https://codereview.chromium.org/1860343002/diff/60001/net/http/http_server_properties_impl_unittest.cc File net/http/http_server_properties_impl_unittest.cc (right): https://codereview.chromium.org/1860343002/diff/60001/net/http/http_server_properties_impl_unittest.cc#newcode107 net/http/http_server_properties_impl_unittest.cc:107: // Check spdy servers are correctly sett with SchemeHostPort ...
4 years, 8 months ago (2016-04-07 18:27:40 UTC) #8
Zhongyi Shi
Addressing comments, fixed scheme extraction in HttpStreamFactoryImplJob. PTAL. https://codereview.chromium.org/1860343002/diff/60001/net/http/http_server_properties_impl_unittest.cc File net/http/http_server_properties_impl_unittest.cc (right): https://codereview.chromium.org/1860343002/diff/60001/net/http/http_server_properties_impl_unittest.cc#newcode107 net/http/http_server_properties_impl_unittest.cc:107: // ...
4 years, 8 months ago (2016-04-07 21:19:34 UTC) #10
Ryan Hamilton
4 years, 8 months ago (2016-04-08 18:32:51 UTC) #11
looks good though as discussed, we won't land this

https://codereview.chromium.org/1860343002/diff/140001/net/http/http_server_p...
File net/http/http_server_properties_manager.cc (right):

https://codereview.chromium.org/1860343002/diff/140001/net/http/http_server_p...
net/http/http_server_properties_manager.cc:574: std::string spdy_server_url =
"http://" + server_str;
I know this is temporary, but might as well make this https:// for now :>

Powered by Google App Engine
This is Rietveld 408576698