OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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_SPDY_SPDY_CREDENTIAL_BUILDER_H_ | |
6 #define NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/string_piece.h" | |
11 #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.
| |
12 #include "net/base/ssl_client_cert_type.h" | |
13 | |
14 namespace net { | |
15 | |
16 class SSLClientSocket; | |
17 struct SpdyCredential; | |
18 | |
19 // This class provides facilities for building the various fields of | |
20 // SPDY CREDENTIAL frames. | |
21 class NET_EXPORT_PRIVATE SpdyCredentialBuilder { | |
22 public: | |
23 static int Build(std::string tls_unique, | |
24 SSLClientCertType type, | |
25 const std::string& key, | |
26 const std::string& cert, | |
27 size_t slot, | |
28 SpdyCredential* credential); | |
29 | |
30 protected: | |
31 // 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.
| |
32 static std::string GetCredentialSecret(std::string tls_unique); | |
33 }; | |
34 | |
35 } // namespace net | |
36 | |
37 #endif // NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_ | |
OLD | NEW |