Chromium Code Reviews| Index: net/http/transport_security_state.h |
| diff --git a/net/http/transport_security_state.h b/net/http/transport_security_state.h |
| index 14ddfc00df1703cb32c3ab3b334a5647f9c44d92..b0470eedbe1e6a1591c2506a6963aef8046994be 100644 |
| --- a/net/http/transport_security_state.h |
| +++ b/net/http/transport_security_state.h |
| @@ -249,12 +249,16 @@ class NET_EXPORT TransportSecurityState |
| bool include_subdomains; |
| }; |
| - // An interface for asynchronously sending HPKP violation reports. |
| + // An interface for asynchronously sending reports of domain security |
| + // policy violations that TransportSecurityState observes. |
| class NET_EXPORT ReportSenderInterface { |
| public: |
| // Sends the given serialized |report| to |report_uri|. |
| virtual void Send(const GURL& report_uri, const std::string& report) = 0; |
| + // Sets a Content-Type header to be sent on outgoing reports. |
| + virtual void SetContentTypeHeader(const std::string& content_type) = 0; |
|
eroman
2016/09/26 18:37:24
API question: Why not make this a parameter of the
estark
2016/09/26 18:38:45
There are other users of this class that don't car
eroman
2016/09/26 18:55:11
I think it would be clearer for Send() to capture
|
| + |
| // Sets a callback to be called when report sending fails. |
| virtual void SetErrorCallback( |
| const base::Callback<void(const GURL&, int)>& error_callback) = 0; |