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

Issue 9802003: SPDY - persist SPDY settings. (Closed)

Created:
8 years, 9 months ago by ramant (doing other things)
Modified:
8 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, darin-cc_chromium.org, mmenke, willchan no longer on Chromium, hkhalil
Visibility:
Public.

Description

SPDY - persist SPDY settings. HttpServerProperties stores SPDY settings in SettingsMap whose key is settings ID and value is a (flags, value) pair (SettingsFlagsAndValue). The format of the persisted data is same as before (restored the old code that persisted the data). Verified it with an older version of the Preferences file that is very large. Verified that we have sent the right data (sorted and unique settings) to the server and that duplicates were removed from the file. Changed all the code above SpdyFramer to use the above spdy::SettingsMap and spdy::SettingsFlagsAndValue data structures. When chrome sends Spdy Settings to the server, it uses the current SpdyFramer's API calls to create Settings frame. TODO: 1) Delete spdy::SpdySettings and spdy::SpdySetting and replace them with SettingsMap, SpdySettingsIds, SpdySettingsFlags and value. 2) Add version to the persisted data. BUG=117760 R=rch, willchan TEST=network unit tests and browser unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128737

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 32

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+737 lines, -802 lines) Patch
M chrome/browser/net/http_server_properties_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +11 lines, -15 lines 0 comments Download
M chrome/browser/net/http_server_properties_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +66 lines, -22 lines 0 comments Download
M chrome/browser/net/http_server_properties_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +26 lines, -47 lines 0 comments Download
M net/base/net_log_event_type_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -3 lines 0 comments Download
M net/http/http_server_properties.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +11 lines, -15 lines 0 comments Download
M net/http/http_server_properties_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +10 lines, -13 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +11 lines, -42 lines 0 comments Download
M net/http/http_server_properties_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +86 lines, -125 lines 0 comments Download
M net/spdy/spdy_framer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy21_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 20 chunks +112 lines, -115 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 19 chunks +111 lines, -114 lines 0 comments Download
M net/spdy/spdy_network_transaction_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 19 chunks +119 lines, -122 lines 0 comments Download
M net/spdy/spdy_protocol.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -2 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +77 lines, -77 lines 0 comments Download
M net/spdy/spdy_session_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +30 lines, -33 lines 0 comments Download
M net/spdy/spdy_session_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +31 lines, -35 lines 0 comments Download
M net/spdy/spdy_websocket_stream_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +13 lines, -11 lines 0 comments Download
M net/spdy/spdy_websocket_stream_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ramant (doing other things)
Hi Ryan, Would appreciate if you could take a high level look at the changes ...
8 years, 9 months ago (2012-03-21 05:09:03 UTC) #1
Ryan Hamilton
https://chromiumcodereview.appspot.com/9802003/diff/3009/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): https://chromiumcodereview.appspot.com/9802003/diff/3009/chrome/browser/net/http_server_properties_manager.cc#newcode280 chrome/browser/net/http_server_properties_manager.cc:280: if ((*list_it)->GetType() != Value::TYPE_DICTIONARY) { Do I understand correctly ...
8 years, 9 months ago (2012-03-21 16:24:41 UTC) #2
ramant (doing other things)
Hi Ryan, Integrated your latest namespace changes. Would appreciate if you could take another look ...
8 years, 9 months ago (2012-03-23 04:11:25 UTC) #3
Ryan Hamilton
lgtm http://codereview.chromium.org/9802003/diff/3009/chrome/browser/net/http_server_properties_manager.cc File chrome/browser/net/http_server_properties_manager.cc (right): http://codereview.chromium.org/9802003/diff/3009/chrome/browser/net/http_server_properties_manager.cc#newcode280 chrome/browser/net/http_server_properties_manager.cc:280: if ((*list_it)->GetType() != Value::TYPE_DICTIONARY) { On 2012/03/23 04:11:25, ...
8 years, 9 months ago (2012-03-23 15:25:38 UTC) #4
ramant (doing other things)
Fixed the comment and created bugs for the TODO. Many many thanks Ryan for the ...
8 years, 9 months ago (2012-03-23 16:23:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/9802003/20096
8 years, 9 months ago (2012-03-23 16:48:17 UTC) #6
commit-bot: I haz the power
Try job failure for 9802003-20096 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-23 17:26:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/9802003/23105
8 years, 9 months ago (2012-03-24 11:38:52 UTC) #8
commit-bot: I haz the power
8 years, 9 months ago (2012-03-24 14:12:50 UTC) #9
Change committed as 128737

Powered by Google App Engine
This is Rietveld 408576698