Chromium Code Reviews| Index: net/spdy/spdy_credential_builder.h |
| diff --git a/net/spdy/spdy_credential_builder.h b/net/spdy/spdy_credential_builder.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..811f28429966987b168c98b102e09daaf398a995 |
| --- /dev/null |
| +++ b/net/spdy/spdy_credential_builder.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright (c) 2012 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_SPDY_SPDY_CREDENTIAL_BUILDER_H_ |
| +#define NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/string_piece.h" |
| +#include "net/base/net_export.h" |
|
ramant (doing other things)
2012/08/02 00:03:05
nit: consider deleting string_piece.h
Ryan Hamilton
2012/08/02 15:53:49
Done.
|
| +#include "net/base/ssl_client_cert_type.h" |
| + |
| +namespace net { |
| + |
| +class SSLClientSocket; |
| +struct SpdyCredential; |
| + |
| +// This class provides facilities for building the various fields of |
| +// SPDY CREDENTIAL frames. |
| +class NET_EXPORT_PRIVATE SpdyCredentialBuilder { |
| + public: |
| + static int Build(std::string tls_unique, |
| + SSLClientCertType type, |
| + const std::string& key, |
| + const std::string& cert, |
| + size_t slot, |
| + SpdyCredential* credential); |
| + |
| + protected: |
| + // Returns the secret data to be signed as part of a credential frame. |
|
ramant (doing other things)
2012/08/02 00:03:05
nit: consider making it private and adding tests a
Ryan Hamilton
2012/08/02 15:53:49
Done.
|
| + static std::string GetCredentialSecret(std::string tls_unique); |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_ |