| Index: net/http/transport_security_state.h
|
| diff --git a/net/http/transport_security_state.h b/net/http/transport_security_state.h
|
| index 5974f27288cb449410d963a159bec6c347f834cd..038233adca7729fb0a54b55780899ab0e01045ec 100644
|
| --- a/net/http/transport_security_state.h
|
| +++ b/net/http/transport_security_state.h
|
| @@ -284,14 +284,19 @@ class NET_EXPORT TransportSecurityState
|
| // Sends the given serialized |report| to |report_uri| with
|
| // Content-Type header as specified in
|
| // |content_type|. |content_type| should be non-empty.
|
| - // |report_id| could be any non-negative integer. It's passed back to the
|
| - // error or success callbacks.
|
| - virtual void Send(
|
| - const GURL& report_uri,
|
| - base::StringPiece content_type,
|
| - base::StringPiece report,
|
| - const base::Callback<void()>& success_callback,
|
| - const base::Callback<void(const GURL&, int)>& error_callback) = 0;
|
| + // |success_callback| is called iff an HTTP 200 response is received.
|
| + // |error_callback| is called in all other cases. Error callback's
|
| + // |net_error| can be net::OK if the upload was successful but the server
|
| + // returned a non-HTTP 200 |http_response_code|. In all other cases,
|
| + // error callback's |http_response_code| is -1.
|
| + virtual void Send(const GURL& report_uri,
|
| + base::StringPiece content_type,
|
| + base::StringPiece report,
|
| + const base::Callback<void()>& success_callback,
|
| + const base::Callback<void(const GURL&,
|
| + int /* net_error */,
|
| + int /* http_response_code */)>&
|
| + error_callback) = 0;
|
|
|
| protected:
|
| virtual ~ReportSenderInterface() {}
|
|
|