Chromium Code Reviews| Index: net/http/certificate_report_sender.h |
| diff --git a/net/http/certificate_report_sender.h b/net/http/certificate_report_sender.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4ea8755328cb723fcbafc2a14c29da9f4cd16dc8 |
| --- /dev/null |
| +++ b/net/http/certificate_report_sender.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_HTTP_CERTIFICATE_REPORT_SENDER_H_ |
| +#define NET_HTTP_CERTIFICATE_REPORT_SENDER_H_ |
| + |
| +#include <string> |
| + |
| +class GURL; |
| + |
| +namespace net { |
| + |
| +class URLRequestContext; |
| + |
| +// An interface for asynchronously sending serialized certificate |
| +// reports to a URI. |
|
Ryan Sleevi
2015/06/26 20:03:46
nit: Seems like this could be expanded on.
I gues
estark
2015/07/07 21:59:28
Done.
|
| +class CertificateReportSender { |
| + public: |
| + // Represents whether or not to send cookies along with reports. |
| + enum CookiesPreference { SEND_COOKIES, DO_NOT_SEND_COOKIES }; |
|
Ryan Sleevi
2015/06/26 20:03:46
Does this really belong in the base class? It seem
estark
2015/07/07 21:59:28
Done.
|
| + |
| + virtual ~CertificateReportSender() {} |
| + |
| + // Send the given serialized |report| to |report_uri|. |
|
Ryan Sleevi
2015/06/26 20:03:46
Comments should be descriptive, rather than impera
estark
2015/07/07 21:59:28
Done.
|
| + virtual void Send(const GURL& report_uri, const std::string& report) = 0; |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_HTTP_CERTIFICATE_REPORT_SENDER_H_ |