OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_HTTP_CERTIFICATE_REPORT_SENDER_H_ | |
6 #define NET_HTTP_CERTIFICATE_REPORT_SENDER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 class GURL; | |
11 | |
12 namespace net { | |
13 | |
14 class URLRequestContext; | |
15 | |
16 // An interface for asynchronously sending serialized certificate | |
17 // reports to a URI. It takes serialized reports as a sequence of bytes | |
18 // so as to be agnostic to the format of the report being sent (JSON, | |
19 // protobuf, etc.) and the particular data that it contains. Multiple | |
20 // reports can be in-flight at once. | |
21 class CertificateReportSender { | |
22 public: | |
23 virtual ~CertificateReportSender() {} | |
24 | |
25 // Asynchronously sends the given serialized |report| to | |
26 // |report_uri|. There are no guarantees that the report will be sent | |
27 // right away, though it will be sent eventually. | |
davidben
2015/07/23 00:09:41
Probably should add to the API contract:
Requests
estark
2015/07/23 02:41:21
Done.
| |
28 virtual void Send(const GURL& report_uri, const std::string& report) = 0; | |
29 }; | |
30 | |
31 } // namespace net | |
32 | |
33 #endif // NET_HTTP_CERTIFICATE_REPORT_SENDER_H_ | |
OLD | NEW |