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

Issue 9415040: Refactor TransportSecurityState. (Closed)

Created:
8 years, 10 months ago by palmer
Modified:
8 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, wtc
Visibility:
Public.

Description

Refactor TransportSecurityState. Do some minor "gcl lint" cleanup while here. BUG=113280, 120373 TEST=net_unittests, browser_tests, unit_tests TransportSecurityPersisterTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134754

Patch Set 1 #

Total comments: 50

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 21

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Total comments: 68

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 36

Patch Set 11 : #

Total comments: 4

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1262 lines, -1505 lines) Patch
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/resources/net_internals/hsts_view.js View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/transport_security_persister.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +55 lines, -3 lines 0 comments Download
M chrome/browser/transport_security_persister.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +256 lines, -15 lines 0 comments Download
A chrome/browser/transport_security_persister_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +218 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/net_internals/hsts_view.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -2 lines 0 comments Download
M net/base/transport_security_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +192 lines, -175 lines 0 comments Download
M net/base/transport_security_state.cc View 1 2 3 4 5 6 7 8 9 10 11 24 chunks +81 lines, -597 lines 0 comments Download
M net/base/transport_security_state_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +370 lines, -589 lines 0 comments Download
M net/base/x509_cert_types.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -50 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M net/socket_stream/socket_stream_job.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +20 lines, -30 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +15 lines, -15 lines 0 comments Download
M net/websockets/websocket_job_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -4 lines 0 comments Download
M net/websockets/websocket_job_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
palmer
Obviously, this is not a complete CL — this is a piñata proposal for you ...
8 years, 10 months ago (2012-02-17 04:08:29 UTC) #1
Ryan Sleevi
Nuts I shall go! I tried to avoid cheating and looking at either the existing ...
8 years, 10 months ago (2012-02-17 05:16:00 UTC) #2
palmer
http://codereview.chromium.org/9415040/diff/1/net/base/transport_security_state.h File net/base/transport_security_state.h (right): http://codereview.chromium.org/9415040/diff/1/net/base/transport_security_state.h#newcode26 net/base/transport_security_state.h:26: // SHA1 and SHA256. TODO(palmer): Specify and implement that ...
8 years, 9 months ago (2012-03-05 23:47:50 UTC) #3
Ryan Sleevi
Better! Some more feedback below. I'll take another pass tomorrow, this was just a cursory ...
8 years, 9 months ago (2012-03-07 06:02:45 UTC) #4
palmer
http://codereview.chromium.org/9415040/diff/1/net/base/transport_security_state.h File net/base/transport_security_state.h (right): http://codereview.chromium.org/9415040/diff/1/net/base/transport_security_state.h#newcode238 net/base/transport_security_state.h:238: bool Serialize(std::string* output) const; On 2012/03/07 06:02:46, Ryan Sleevi ...
8 years, 9 months ago (2012-03-13 20:13:38 UTC) #5
Ryan Sleevi
Still feels like there's some tight coupling here between the HTTP logic and the access/storage ...
8 years, 9 months ago (2012-03-15 03:51:15 UTC) #6
palmer
http://codereview.chromium.org/9415040/diff/10001/net/base/transport_security_state.h File net/base/transport_security_state.h (right): http://codereview.chromium.org/9415040/diff/10001/net/base/transport_security_state.h#newcode47 net/base/transport_security_state.h:47: : delegate_(delegate); On 2012/03/15 03:51:15, Ryan Sleevi wrote: > ...
8 years, 9 months ago (2012-03-19 23:37:51 UTC) #7
agl
http://codereview.chromium.org/9415040/diff/10001/net/base/transport_security_state.h File net/base/transport_security_state.h (right): http://codereview.chromium.org/9415040/diff/10001/net/base/transport_security_state.h#newcode46 net/base/transport_security_state.h:46: TransportSecurityState(TransportSecurityState::Delegate* delegate) explicit http://codereview.chromium.org/9415040/diff/10001/net/base/x509_certificate.h File net/base/x509_certificate.h (right): http://codereview.chromium.org/9415040/diff/10001/net/base/x509_certificate.h#newcode578 net/base/x509_certificate.h:578: ...
8 years, 9 months ago (2012-03-20 22:12:59 UTC) #8
palmer
I've marked a lot of things Done but haven't done a gcl upload yet. Don't ...
8 years, 9 months ago (2012-03-22 16:38:59 UTC) #9
palmer
Adding mirandac as OWNER for chrome/browser/profiles Adding eroman as OWNER for chrome/browser/ui/webui/net_internals Thanks!
8 years, 9 months ago (2012-03-23 21:22:08 UTC) #10
eroman
lgtm for net_internals.cc http://codereview.chromium.org/9415040/diff/21024/chrome/browser/ui/webui/net_internals/net_internals_ui.cc File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): http://codereview.chromium.org/9415040/diff/21024/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode1009 chrome/browser/ui/webui/net_internals/net_internals_ui.cc:1009: // TODO(palmer): result->SetBoolean("preloaded", state.preloaded); Please add ...
8 years, 9 months ago (2012-03-23 21:34:28 UTC) #11
palmer
http://codereview.chromium.org/9415040/diff/21024/chrome/browser/ui/webui/net_internals/net_internals_ui.cc File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): http://codereview.chromium.org/9415040/diff/21024/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode1009 chrome/browser/ui/webui/net_internals/net_internals_ui.cc:1009: // TODO(palmer): result->SetBoolean("preloaded", state.preloaded); On 2012/03/23 21:34:29, eroman wrote: ...
8 years, 9 months ago (2012-03-23 22:49:04 UTC) #12
eroman
http://codereview.chromium.org/9415040/diff/20034/chrome/browser/ui/webui/net_internals/net_internals_ui.cc File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): http://codereview.chromium.org/9415040/diff/20034/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode1016 chrome/browser/ui/webui/net_internals/net_internals_ui.cc:1016: result->SetString("static_spki_hashes", hashes); You need to update the javascript too ...
8 years, 9 months ago (2012-03-23 22:59:24 UTC) #13
Miranda Callahan
On 2012/03/23 22:59:24, eroman wrote: > http://codereview.chromium.org/9415040/diff/20034/chrome/browser/ui/webui/net_internals/net_internals_ui.cc > File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): > > http://codereview.chromium.org/9415040/diff/20034/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode1016 > ...
8 years, 9 months ago (2012-03-26 13:08:12 UTC) #14
Ryan Sleevi
nit party time. http://codereview.chromium.org/9415040/diff/20034/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (left): http://codereview.chromium.org/9415040/diff/20034/chrome/browser/profiles/profile_io_data.cc#oldcode440 chrome/browser/profiles/profile_io_data.cc:440: command_line.GetSwitchValueASCII(switches::kHstsHosts))); Is this no longer supported? ...
8 years, 9 months ago (2012-03-28 00:50:32 UTC) #15
palmer
http://codereview.chromium.org/9415040/diff/20034/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (left): http://codereview.chromium.org/9415040/diff/20034/chrome/browser/profiles/profile_io_data.cc#oldcode440 chrome/browser/profiles/profile_io_data.cc:440: command_line.GetSwitchValueASCII(switches::kHstsHosts))); On 2012/03/28 00:50:32, Ryan Sleevi wrote: > Is ...
8 years, 8 months ago (2012-04-10 23:25:51 UTC) #16
Ryan Sleevi
Fun times! Mostly nits, but several questions below. Note that while I request that the ...
8 years, 8 months ago (2012-04-26 19:21:12 UTC) #17
palmer
http://codereview.chromium.org/9415040/diff/43003/chrome/browser/transport_security_persister.cc File chrome/browser/transport_security_persister.cc (right): http://codereview.chromium.org/9415040/diff/43003/chrome/browser/transport_security_persister.cc#newcode92 chrome/browser/transport_security_persister.cc:92: namespace { On 2012/04/26 19:21:12, Ryan Sleevi wrote: > ...
8 years, 8 months ago (2012-04-27 23:52:33 UTC) #18
Ryan Sleevi
Last two nits, but I'll give you the LGTM you've been waiting for :) Feel ...
8 years, 8 months ago (2012-04-28 00:10:59 UTC) #19
palmer
> Last two nits, but I'll give you the LGTM you've been waiting for :) ...
8 years, 7 months ago (2012-04-30 22:02:39 UTC) #20
palmer
http://codereview.chromium.org/9415040/diff/53001/net/base/transport_security_state.h File net/base/transport_security_state.h (right): http://codereview.chromium.org/9415040/diff/53001/net/base/transport_security_state.h#newcode234 net/base/transport_security_state.h:234: void EnabledHostsInsert(std::string hashed_host, const DomainState& state); On 2012/04/28 00:10:59, ...
8 years, 7 months ago (2012-04-30 22:17:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/9415040/65002
8 years, 7 months ago (2012-05-01 16:59:42 UTC) #22
commit-bot: I haz the power
Try job failure for 9415040-65002 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-01 17:45:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/9415040/67010
8 years, 7 months ago (2012-05-01 17:55:10 UTC) #24
commit-bot: I haz the power
8 years, 7 months ago (2012-05-01 19:39:54 UTC) #25
Change committed as 134754

Powered by Google App Engine
This is Rietveld 408576698