Index: net/http/transport_security_state.h |
diff --git a/net/http/transport_security_state.h b/net/http/transport_security_state.h |
index d5283712c57ae28e53a6f63cecd722c136bc7a19..ca1cc91dfc3fdd04ea6759884940efe2d92109d2 100644 |
--- a/net/http/transport_security_state.h |
+++ b/net/http/transport_security_state.h |
@@ -449,6 +449,18 @@ class NET_EXPORT TransportSecurityState |
const HostPortPair& host_port_pair, |
const SSLInfo& ssl_info); |
+ // Sends an Expect-Staple report containing the raw |ocsp_response| for |
+ // |host_port_pair| if the following conditions are true: |
+ // 1. The given host is present on the Expect-Staple preload list with a valid |
+ // report-uri, and the build is timely (i.e. preload list is fresh). |
Ryan Sleevi
2016/07/19 19:11:04
This is really two conditions (same with #3) :)
1
dadrian
2016/07/19 21:21:45
Done.
dadrian
2016/07/19 21:21:46
Done.
|
+ // 2. |ssl_info| indicates the connection did not provide an OCSP response |
+ // indicating a revocation status of GOOD. |
+ // 3. A report sender is provided with SetReportSender(), and the private |
+ // |enable_static_expect_staple_| flag is set. |
+ void ProcessExpectStaple(const HostPortPair& host_port_pair, |
Ryan Sleevi
2016/07/19 19:11:04
Naming wise, I think this should be CheckExpectSta
dadrian
2016/07/19 21:21:46
Done.
This is just a ploy to cause name collision
|
+ const SSLInfo& ssl_info, |
+ const std::string& ocsp_response); |
+ |
// For unit tests only; causes ShouldRequireCT() to return |*required| |
// by default (that is, unless a RequireCTDelegate overrides). Set to |
// nullptr to reset. |