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

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

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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
« no previous file with comments | « net/socket_stream/socket_stream_job.cc ('k') | net/spdy/spdy_credential_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_ 5 #ifndef NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_
6 #define NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_ 6 #define NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/base/ssl_client_cert_type.h" 11 #include "net/ssl/ssl_client_cert_type.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class SSLClientSocket; 15 class SSLClientSocket;
16 struct SpdyCredential; 16 struct SpdyCredential;
17 17
18 // This class provides facilities for building the various fields of 18 // This class provides facilities for building the various fields of
19 // SPDY CREDENTIAL frames. 19 // SPDY CREDENTIAL frames.
20 class NET_EXPORT_PRIVATE SpdyCredentialBuilder { 20 class NET_EXPORT_PRIVATE SpdyCredentialBuilder {
21 public: 21 public:
22 static int Build(const std::string& tls_unique, 22 static int Build(const std::string& tls_unique,
23 SSLClientCertType type, 23 SSLClientCertType type,
24 const std::string& key, 24 const std::string& key,
25 const std::string& cert, 25 const std::string& cert,
26 size_t slot, 26 size_t slot,
27 SpdyCredential* credential); 27 SpdyCredential* credential);
28 28
29 private: 29 private:
30 friend class SpdyCredentialBuilderTest; 30 friend class SpdyCredentialBuilderTest;
31 31
32 // Returns the secret data to be signed as part of a credential frame. 32 // Returns the secret data to be signed as part of a credential frame.
33 static std::string GetCredentialSecret(const std::string& tls_unique); 33 static std::string GetCredentialSecret(const std::string& tls_unique);
34 }; 34 };
35 35
36 } // namespace net 36 } // namespace net
37 37
38 #endif // NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_ 38 #endif // NET_SPDY_SPDY_CREDENTIAL_BUILDER_H_
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream_job.cc ('k') | net/spdy/spdy_credential_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698