Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: net/spdy/spdy_credential_builder.h

Issue 10807088: Implement TLS Channel ID support for SPDY CREDENTIAL frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Factor out MockClientSocket::kTlsUnique. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698