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

Side by Side Diff: net/socket/ssl_socket.h

Issue 8817019: Don't attempt to forward declare StringPiece. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/base/x509_certificate.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SOCKET_SSL_SOCKET_H_ 5 #ifndef NET_SOCKET_SSL_SOCKET_H_
6 #define NET_SOCKET_SSL_SOCKET_H_ 6 #define NET_SOCKET_SSL_SOCKET_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string_piece.h"
9 #include "net/socket/stream_socket.h" 10 #include "net/socket/stream_socket.h"
10 11
11 namespace base {
12 class StringPiece;
13 } // namespace base
14
15 namespace net { 12 namespace net {
16 13
17 // SSLSocket interface defines method that are common between client 14 // SSLSocket interface defines method that are common between client
18 // and server SSL sockets. 15 // and server SSL sockets.
19 class NET_EXPORT SSLSocket : public StreamSocket { 16 class NET_EXPORT SSLSocket : public StreamSocket {
20 public: 17 public:
21 virtual ~SSLSocket() {} 18 virtual ~SSLSocket() {}
22 19
23 // Exports data derived from the SSL master-secret (see RFC 5705). 20 // Exports data derived from the SSL master-secret (see RFC 5705).
24 // The call will fail with an error if the socket is not connected, or the 21 // The call will fail with an error if the socket is not connected, or the
25 // SSL implementation does not support the operation. 22 // SSL implementation does not support the operation.
26 virtual int ExportKeyingMaterial(const base::StringPiece& label, 23 virtual int ExportKeyingMaterial(const base::StringPiece& label,
27 const base::StringPiece& context, 24 const base::StringPiece& context,
28 unsigned char *out, 25 unsigned char *out,
29 unsigned int outlen) = 0; 26 unsigned int outlen) = 0;
30 }; 27 };
31 28
32 } // namespace net 29 } // namespace net
33 30
34 #endif // NET_SOCKET_SSL_SOCKET_H_ 31 #endif // NET_SOCKET_SSL_SOCKET_H_
OLDNEW
« no previous file with comments | « net/base/x509_certificate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698