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

Issue 2949513005: Update param types of HttpServerPropertiesImpl setters and getters. Fix MRU order when loading (Closed)

Created:
3 years, 6 months ago by wangyix1
Modified:
3 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update param types of HttpServerPropertiesImpl setters and getters Use unique_ptrs in params of HttpServerPropertiesImpl functions SetAlternativeServiceServers(), SetServerNetworkStats(), and SetQuicServerInfoMap() to reduce copying. Fix loading of alternative service map from prefs so it's MRU order instead of reverse MRU. Rename HttpServerPropertiesImpl::GetSpdyServerList() to GetSpdyServers(). Change it to return vector<string> instead of ListValue of strings. These changes make it consistent with SetSpdyServers(). Review-Url: https://codereview.chromium.org/2949513005 Cr-Commit-Position: refs/heads/master@{#482420} Committed: https://chromium.googlesource.com/chromium/src/+/064e7bf9724307e7d07f0b8852de3a4bee4eb6f6

Patch Set 1 #

Patch Set 2 : Fixed minor typos #

Total comments: 29

Patch Set 3 : Changed more HttpServerPropertiesManager and Impl param types #

Patch Set 4 : Fixed rch and zhongyi's nits from ps2 #

Patch Set 5 : Change SetSpdyServers() to take SpdyServersMap instead of vector<string>, bool #

Patch Set 6 : Added missing newline #

Total comments: 9

Patch Set 7 : Fixed rch's nits from ps6 #

Patch Set 8 : Rebase #

Patch Set 9 : Forgot some if() guards to avoid nullptr dereference #

Patch Set 10 : Updated HttpServerPropertiesManagerTest.SingleUpdateForTwoSpdyServerPrefChanges to reflect new load… #

Total comments: 1

Messages

Total messages: 37 (23 generated)
wangyix1
PTAL
3 years, 6 months ago (2017-06-20 18:00:36 UTC) #4
Ryan Hamilton
Thanks for doing this! https://codereview.chromium.org/2949513005/diff/20001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/2949513005/diff/20001/net/http/http_server_properties_impl.cc#newcode48 net/http/http_server_properties_impl.cc:48: const std::vector<std::string>* spdy_servers, I wonder ...
3 years, 6 months ago (2017-06-20 18:25:56 UTC) #5
Zhongyi Shi
Thanks for clean this up! https://codereview.chromium.org/2949513005/diff/20001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/2949513005/diff/20001/net/http/http_server_properties_impl.cc#newcode56 net/http/http_server_properties_impl.cc:56: for (auto it = ...
3 years, 6 months ago (2017-06-20 22:06:19 UTC) #6
wangyix1
PTAL. Per rch's comment, HttpServerPropertiesImpl::SetSpdyServers() has been changed to take a SpdyServersMap instead of a ...
3 years, 6 months ago (2017-06-21 18:45:33 UTC) #8
Ryan Hamilton
Sweet. https://codereview.chromium.org/2949513005/diff/20001/net/http/http_server_properties_impl.cc File net/http/http_server_properties_impl.cc (right): https://codereview.chromium.org/2949513005/diff/20001/net/http/http_server_properties_impl.cc#newcode86 net/http/http_server_properties_impl.cc:86: alternative_service_map_.Swap(*alternative_service_map); On 2017/06/21 18:45:32, wangyix1 wrote: > On ...
3 years, 6 months ago (2017-06-22 02:45:52 UTC) #13
wangyix1
PTAL https://codereview.chromium.org/2949513005/diff/20001/net/http/http_server_properties_impl.h File net/http/http_server_properties_impl.h (right): https://codereview.chromium.org/2949513005/diff/20001/net/http/http_server_properties_impl.h#newcode43 net/http/http_server_properties_impl.h:43: void SetSpdyServers(const std::vector<std::string>* spdy_servers, On 2017/06/22 02:45:52, Ryan ...
3 years, 6 months ago (2017-06-22 17:45:09 UTC) #14
Ryan Hamilton
lgtm (any idea why the bots are red) https://codereview.chromium.org/2949513005/diff/120001/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/2949513005/diff/120001/net/http/http_server_properties_manager.cc#newcode501 net/http/http_server_properties_manager.cc:501: it ...
3 years, 6 months ago (2017-06-22 22:10:30 UTC) #19
wangyix1
Actually don't take a look yet, found some issues. https://codereview.chromium.org/2949513005/diff/120001/net/http/http_server_properties_manager.cc File net/http/http_server_properties_manager.cc (right): https://codereview.chromium.org/2949513005/diff/120001/net/http/http_server_properties_manager.cc#newcode501 net/http/http_server_properties_manager.cc:501: ...
3 years, 6 months ago (2017-06-22 22:11:06 UTC) #20
wangyix1
alternative service map is now loaded from prefs in MRU order instead of reverse MRU ...
3 years, 6 months ago (2017-06-23 19:06:06 UTC) #26
Zhongyi Shi
LGTM! https://codereview.chromium.org/2949513005/diff/200001/net/http/http_server_properties_manager_unittest.cc File net/http/http_server_properties_manager_unittest.cc (left): https://codereview.chromium.org/2949513005/diff/200001/net/http/http_server_properties_manager_unittest.cc#oldcode429 net/http/http_server_properties_manager_unittest.cc:429: EXPECT_EQ(1234, map_it->second[1].alternative_service().port); Urm, old test indicated that the ...
3 years, 5 months ago (2017-06-26 19:05:56 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2949513005/200001
3 years, 5 months ago (2017-06-26 19:07:16 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/476418)
3 years, 5 months ago (2017-06-26 20:28:00 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2949513005/200001
3 years, 5 months ago (2017-06-26 20:37:43 UTC) #34
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 21:40:21 UTC) #37
Message was sent while issue was closed.
Committed patchset #10 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/064e7bf9724307e7d07f0b8852de...

Powered by Google App Engine
This is Rietveld 408576698