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

Side by Side Diff: net/base/ssl_info.h

Issue 6969077: net: Add NET_API to net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
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_BASE_SSL_INFO_H_ 5 #ifndef NET_BASE_SSL_INFO_H_
6 #define NET_BASE_SSL_INFO_H_ 6 #define NET_BASE_SSL_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "net/base/net_api.h"
12 #include "net/base/x509_cert_types.h" 13 #include "net/base/x509_cert_types.h"
13 14
14 namespace net { 15 namespace net {
15 16
16 class X509Certificate; 17 class X509Certificate;
17 18
18 // SSL connection info. 19 // SSL connection info.
19 // This is really a struct. All members are public. 20 // This is really a struct. All members are public.
20 class SSLInfo { 21 class NET_API SSLInfo {
21 public: 22 public:
22 SSLInfo(); 23 SSLInfo();
23 SSLInfo(const SSLInfo& info); 24 SSLInfo(const SSLInfo& info);
24 ~SSLInfo(); 25 ~SSLInfo();
25 SSLInfo& operator=(const SSLInfo& info); 26 SSLInfo& operator=(const SSLInfo& info);
26 27
27 void Reset(); 28 void Reset();
28 29
29 bool is_valid() const { return cert != NULL; } 30 bool is_valid() const { return cert != NULL; }
30 31
(...skipping 22 matching lines...) Expand all
53 // standard CA root. (As opposed to a user-installed root.) 54 // standard CA root. (As opposed to a user-installed root.)
54 bool is_issued_by_known_root; 55 bool is_issued_by_known_root;
55 56
56 // The hashes of the SubjectPublicKeyInfos from each certificate in the chain. 57 // The hashes of the SubjectPublicKeyInfos from each certificate in the chain.
57 std::vector<SHA1Fingerprint> public_key_hashes; 58 std::vector<SHA1Fingerprint> public_key_hashes;
58 }; 59 };
59 60
60 } // namespace net 61 } // namespace net
61 62
62 #endif // NET_BASE_SSL_INFO_H_ 63 #endif // NET_BASE_SSL_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698