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

Issue 135373002: Added SSLHostInfo. Storing of server host info to our standard disk cache. (Closed)

Created:
6 years, 11 months ago by ramant (doing other things)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, sanjeevr, gavinp+disk_chromium.org, dcaiafa+watch_chromium.org, sergeyu+watch_chromium.org, amit, hclam+watch_chromium.org, jam, garykac+watch_chromium.org, joi+watch-content_chromium.org, wez+watch_chromium.org, eroman, darin-cc_chromium.org, weitaosu+watch_chromium.org, chromium-apps-reviews_chromium.org, alexeypa+watch_chromium.org, rmsousa+watch_chromium.org, mmenke, lambroslambrou+watch_chromium.org
Visibility:
Public.

Description

Added SSLHostInfo. Storing of server info to our standard disk cache. Implemented DiskCacheBasedSSLHostInfo which fetches information about an SSL host from our standard disk cache. Since the information is defined to be non-sensitive, it's ok for us to keep it on disk. SSLHostInfo persists/restores server's certificates. Certificates is a vector of DER encoded X.509 certificates, as the server returned them and in the same order. These changes are the frame work. This code is not enabled to store any data to disk cache. R=wtc@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246254

Patch Set 1 #

Patch Set 2 : Fix for compile errors and merge with TOT #

Patch Set 3 : Merge with TOT #

Total comments: 29

Patch Set 4 : fixed wtc's comments #

Patch Set 5 : fixed wtc's comments #

Total comments: 6

Patch Set 6 : fixed wtc's comments for patchet set#5 #

Patch Set 7 : Removed changes to SSL and non-net directories #

Total comments: 6

Patch Set 8 : fixed wtc's comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+908 lines, -9 lines) Patch
A net/http/disk_cache_based_ssl_host_info.h View 1 chunk +106 lines, -0 lines 0 comments Download
A net/http/disk_cache_based_ssl_host_info.cc View 1 chunk +281 lines, -0 lines 0 comments Download
A net/http/disk_cache_based_ssl_host_info_unittest.cc View 1 1 chunk +119 lines, -0 lines 0 comments Download
M net/http/http_cache.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_cache.cc View 1 2 3 4 chunks +25 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 chunk +1 line, -0 lines 2 comments Download
M net/http/http_network_session.h View 2 chunks +2 lines, -0 lines 0 comments Download
M net/http/http_network_session.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -9 lines 0 comments Download
M net/http/http_transaction.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 2 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
A net/socket/ssl_host_info.h View 1 1 chunk +144 lines, -0 lines 0 comments Download
A net/socket/ssl_host_info.cc View 1 chunk +207 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
wtc
Review comments on patch set 3: Please make the changes I suggested and upload a ...
6 years, 11 months ago (2014-01-15 19:08:58 UTC) #1
ramant (doing other things)
PTAL. Thanks very much for thorough code review. https://codereview.chromium.org/135373002/diff/1030001/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/135373002/diff/1030001/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode41 chrome/browser/chrome_net_benchmarking_message_filter.cc:41: callback_( ...
6 years, 11 months ago (2014-01-18 00:21:55 UTC) #2
ramant (doing other things)
https://codereview.chromium.org/135373002/diff/1030001/net/socket/ssl_client_socket_pool.cc File net/socket/ssl_client_socket_pool.cc (right): https://codereview.chromium.org/135373002/diff/1030001/net/socket/ssl_client_socket_pool.cc#newcode128 net/socket/ssl_client_socket_pool.cc:128: NULL, /* TODO(rtenneti): Fix SSLHostInfoFactory */ On 2014/01/18 00:21:56, ...
6 years, 11 months ago (2014-01-18 00:28:46 UTC) #3
wtc
Review comments on patch set 5: Just three nits. Everything else looks good. Thanks! https://codereview.chromium.org/135373002/diff/1600002/chrome/browser/chrome_net_benchmarking_message_filter.cc ...
6 years, 11 months ago (2014-01-18 01:02:00 UTC) #4
ramant (doing other things)
PTAL https://codereview.chromium.org/135373002/diff/1600002/chrome/browser/chrome_net_benchmarking_message_filter.cc File chrome/browser/chrome_net_benchmarking_message_filter.cc (right): https://codereview.chromium.org/135373002/diff/1600002/chrome/browser/chrome_net_benchmarking_message_filter.cc#newcode63 chrome/browser/chrome_net_benchmarking_message_filter.cc:63: // Doom all entries except those with sslhostinfo ...
6 years, 11 months ago (2014-01-18 01:28:53 UTC) #5
wtc
Patch set 6 is good. Thanks!
6 years, 11 months ago (2014-01-18 01:43:33 UTC) #6
ramant (doing other things)
Hi Want-Teh, Deleted SSLHostInfo related changes from SSLClientSocket and all non-net directories. PTAL. thanks raman
6 years, 11 months ago (2014-01-18 04:16:31 UTC) #7
wtc
Patch set 7 LGTM. Please update the CL's description to make sure it describes what ...
6 years, 11 months ago (2014-01-21 23:07:19 UTC) #8
wtc
Raman: I've tested patch set 7. I suggest one more change. https://codereview.chromium.org/135373002/diff/1480002/net/http/http_network_session.cc File net/http/http_network_session.cc (right): ...
6 years, 11 months ago (2014-01-21 23:23:33 UTC) #9
ramant (doing other things)
Hi Wan-Teh, Would appreciate your comments about the CL description. thanks raman https://codereview.chromium.org/135373002/diff/1480002/net/http/http_network_session.cc File net/http/http_network_session.cc ...
6 years, 11 months ago (2014-01-22 02:28:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/135373002/2580001
6 years, 11 months ago (2014-01-22 02:48:02 UTC) #11
commit-bot: I haz the power
Change committed as 246254
6 years, 11 months ago (2014-01-22 09:23:29 UTC) #12
rvargas (doing something else)
https://codereview.chromium.org/135373002/diff/2580001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/135373002/diff/2580001/net/http/http_cache_transaction.cc#newcode35 net/http/http_cache_transaction.cc:35: #include "net/http/disk_cache_based_ssl_host_info.h" seems not needed. https://codereview.chromium.org/135373002/diff/2580001/net/http/http_transaction.h File net/http/http_transaction.h (right): ...
6 years, 11 months ago (2014-01-23 01:18:32 UTC) #13
ramant (doing other things)
6 years, 11 months ago (2014-01-23 18:50:03 UTC) #14
Message was sent while issue was closed.
Made the changes in the following CL:

https://codereview.chromium.org/143073006/

thanks
raman

https://codereview.chromium.org/135373002/diff/2580001/net/http/http_cache_tr...
File net/http/http_cache_transaction.cc (right):

https://codereview.chromium.org/135373002/diff/2580001/net/http/http_cache_tr...
net/http/http_cache_transaction.cc:35: #include
"net/http/disk_cache_based_ssl_host_info.h"
On 2014/01/23 01:18:32, rvargas wrote:
> seems not needed.

Done.

https://codereview.chromium.org/135373002/diff/2580001/net/http/http_transact...
File net/http/http_transaction.h (right):

https://codereview.chromium.org/135373002/diff/2580001/net/http/http_transact...
net/http/http_transaction.h:139: virtual void SetSSLHostInfo(SSLHostInfo*) {};
On 2014/01/23 01:18:32, rvargas wrote:
> It seems better to maintain the pattern of the rest of the class and don't
> provide a default implementation.

Done.

Powered by Google App Engine
This is Rietveld 408576698