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

Side by Side Diff: net/third_party/mozilla_security_manager/nsNSSCertTrust.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
1 /* ***** BEGIN LICENSE BLOCK ***** 1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 * 3 *
4 * The contents of this file are subject to the Mozilla Public License Version 4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with 5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at 6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/ 7 * http://www.mozilla.org/MPL/
8 * 8 *
9 * Software distributed under the License is distributed on an "AS IS" basis, 9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
(...skipping 24 matching lines...) Expand all
35 * the terms of any one of the MPL, the GPL or the LGPL. 35 * the terms of any one of the MPL, the GPL or the LGPL.
36 * 36 *
37 * ***** END LICENSE BLOCK ***** */ 37 * ***** END LICENSE BLOCK ***** */
38 38
39 #ifndef NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ 39 #ifndef NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_
40 #define NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ 40 #define NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_
41 41
42 #include <certt.h> 42 #include <certt.h>
43 #include <certdb.h> 43 #include <certdb.h>
44 44
45 #include "net/base/net_api.h" 45 #include "net/base/net_export.h"
46 46
47 namespace mozilla_security_manager { 47 namespace mozilla_security_manager {
48 48
49 /* 49 /*
50 * nsNSSCertTrust 50 * nsNSSCertTrust
51 * 51 *
52 * Class for maintaining trust flags for an NSS certificate. 52 * Class for maintaining trust flags for an NSS certificate.
53 */ 53 */
54 class NET_API nsNSSCertTrust 54 class NET_EXPORT nsNSSCertTrust
55 { 55 {
56 public: 56 public:
57 nsNSSCertTrust(); 57 nsNSSCertTrust();
58 nsNSSCertTrust(unsigned int ssl, unsigned int email, unsigned int objsign); 58 nsNSSCertTrust(unsigned int ssl, unsigned int email, unsigned int objsign);
59 nsNSSCertTrust(CERTCertTrust *t); 59 nsNSSCertTrust(CERTCertTrust *t);
60 virtual ~nsNSSCertTrust(); 60 virtual ~nsNSSCertTrust();
61 61
62 /* query */ 62 /* query */
63 PRBool HasAnyCA(); 63 PRBool HasAnyCA();
64 PRBool HasAnyUser(); 64 PRBool HasAnyUser();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 private: 119 private:
120 void addTrust(unsigned int *t, unsigned int v); 120 void addTrust(unsigned int *t, unsigned int v);
121 void removeTrust(unsigned int *t, unsigned int v); 121 void removeTrust(unsigned int *t, unsigned int v);
122 PRBool hasTrust(unsigned int t, unsigned int v); 122 PRBool hasTrust(unsigned int t, unsigned int v);
123 CERTCertTrust mTrust; 123 CERTCertTrust mTrust;
124 }; 124 };
125 125
126 } // namespace mozilla_security_manager 126 } // namespace mozilla_security_manager
127 127
128 #endif // NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ 128 #endif // NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698