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

Side by Side Diff: webrtc/base/sslidentity.h

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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
« no previous file with comments | « webrtc/base/socketstream.h ('k') | webrtc/base/stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Helper function for duplicating a vector of certificates. 97 // Helper function for duplicating a vector of certificates.
98 static SSLCertificate* DupCert(const SSLCertificate* cert) { 98 static SSLCertificate* DupCert(const SSLCertificate* cert) {
99 return cert->GetReference(); 99 return cert->GetReference();
100 } 100 }
101 101
102 // Helper function for deleting a vector of certificates. 102 // Helper function for deleting a vector of certificates.
103 static void DeleteCert(SSLCertificate* cert) { delete cert; } 103 static void DeleteCert(SSLCertificate* cert) { delete cert; }
104 104
105 std::vector<SSLCertificate*> certs_; 105 std::vector<SSLCertificate*> certs_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(SSLCertChain); 107 RTC_DISALLOW_COPY_AND_ASSIGN(SSLCertChain);
108 }; 108 };
109 109
110 // TODO(hbos, torbjorng): Don't change KT_DEFAULT without first 110 // TODO(hbos, torbjorng): Don't change KT_DEFAULT without first
111 // updating PeerConnectionFactory_nativeCreatePeerConnection's certificate 111 // updating PeerConnectionFactory_nativeCreatePeerConnection's certificate
112 // generation code. 112 // generation code.
113 enum KeyType { KT_RSA, KT_ECDSA, KT_LAST, KT_DEFAULT = KT_RSA }; 113 enum KeyType { KT_RSA, KT_ECDSA, KT_LAST, KT_DEFAULT = KT_RSA };
114 114
115 // Parameters for generating an identity for testing. If common_name is 115 // Parameters for generating an identity for testing. If common_name is
116 // non-empty, it will be used for the certificate's subject and issuer name, 116 // non-empty, it will be used for the certificate's subject and issuer name,
117 // otherwise a random string will be used. |not_before| and |not_after| are 117 // otherwise a random string will be used. |not_before| and |not_after| are
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 size_t length); 163 size_t length);
164 }; 164 };
165 165
166 extern const char kPemTypeCertificate[]; 166 extern const char kPemTypeCertificate[];
167 extern const char kPemTypeRsaPrivateKey[]; 167 extern const char kPemTypeRsaPrivateKey[];
168 extern const char kPemTypeEcPrivateKey[]; 168 extern const char kPemTypeEcPrivateKey[];
169 169
170 } // namespace rtc 170 } // namespace rtc
171 171
172 #endif // WEBRTC_BASE_SSLIDENTITY_H_ 172 #endif // WEBRTC_BASE_SSLIDENTITY_H_
OLDNEW
« no previous file with comments | « webrtc/base/socketstream.h ('k') | webrtc/base/stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698