Commit e07195ab authored by Kouhei Ueno's avatar Kouhei Ueno Committed by Commit Bot

Document class SignedExchangeHandler

and remove obsolete comments.

Bug: 803774
Change-Id: Ifa7c7c287fa11f312d62a3f9b18e79be7f47c572
Reviewed-on: https://chromium-review.googlesource.com/1187858Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarKunihiko Sakamoto <ksakamoto@chromium.org>
Commit-Queue: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585777}
parent 97f78906
...@@ -43,12 +43,16 @@ class SignedExchangeCertFetcherFactory; ...@@ -43,12 +43,16 @@ class SignedExchangeCertFetcherFactory;
class SignedExchangeCertificateChain; class SignedExchangeCertificateChain;
class SignedExchangeDevToolsProxy; class SignedExchangeDevToolsProxy;
// IMPORTANT: Currenly SignedExchangeHandler partially implements the verifying // SignedExchangeHandler reads "application/signed-exchange" format from a
// logic. // net::SourceStream, parse and verify the signed exchange, and report
// TODO(https://crbug.com/803774): Implement verifying logic. // the result asynchronously via SignedExchangeHandler::ExchangeHeadersCallback.
//
// Note that verifying a signed exchange requires an associated certificate
// chain. SignedExchangeHandler creates a SignedExchangeCertFetcher to
// fetch the certificate chain over network, and verify it with the
// net::CertVerifier.
class CONTENT_EXPORT SignedExchangeHandler { class CONTENT_EXPORT SignedExchangeHandler {
public: public:
// TODO(https://crbug.com/803774): Add verification status here.
using ExchangeHeadersCallback = base::OnceCallback<void( using ExchangeHeadersCallback = base::OnceCallback<void(
net::Error error, net::Error error,
const GURL& request_url, const GURL& request_url,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment