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

Side by Side Diff: ios/web/navigation/crw_session_certificate_policy_manager.mm

Issue 2202623002: Converts parts of ios/web to ARC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed extra release Created 4 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #import "ios/web/navigation/crw_session_certificate_policy_manager.h" 5 #import "ios/web/navigation/crw_session_certificate_policy_manager.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
14 #include "ios/web/public/certificate_policy_cache.h" 14 #include "ios/web/public/certificate_policy_cache.h"
15 #include "ios/web/public/web_thread.h" 15 #include "ios/web/public/web_thread.h"
16 #include "net/base/hash_value.h" 16 #include "net/base/hash_value.h"
17 #include "net/cert/x509_certificate.h" 17 #include "net/cert/x509_certificate.h"
18 18
19 #if !defined(__has_feature) || !__has_feature(objc_arc)
20 #error "This file requires ARC support."
21 #endif
22
19 // Break if we detect that CertStatus values changed, because we persist them on 23 // Break if we detect that CertStatus values changed, because we persist them on
20 // disk and thus require them to be consistent. 24 // disk and thus require them to be consistent.
21 static_assert(net::CERT_STATUS_ALL_ERRORS == 0xFF00FFFF, 25 static_assert(net::CERT_STATUS_ALL_ERRORS == 0xFF00FFFF,
22 "The value of CERT_STATUS_ALL_ERRORS changed!"); 26 "The value of CERT_STATUS_ALL_ERRORS changed!");
23 static_assert(net::CERT_STATUS_COMMON_NAME_INVALID == 1 << 0, 27 static_assert(net::CERT_STATUS_COMMON_NAME_INVALID == 1 << 0,
24 "The value of CERT_STATUS_COMMON_NAME_INVALID changed!"); 28 "The value of CERT_STATUS_COMMON_NAME_INVALID changed!");
25 static_assert(net::CERT_STATUS_DATE_INVALID == 1 << 1, 29 static_assert(net::CERT_STATUS_DATE_INVALID == 1 << 1,
26 "The value of CERT_STATUS_DATE_INVALID changed!"); 30 "The value of CERT_STATUS_DATE_INVALID changed!");
27 static_assert(net::CERT_STATUS_AUTHORITY_INVALID == 1 << 2, 31 static_assert(net::CERT_STATUS_AUTHORITY_INVALID == 1 << 2,
28 "The value of CERT_STATUS_AUTHORITY_INVALID changed!"); 32 "The value of CERT_STATUS_AUTHORITY_INVALID changed!");
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 185 }
182 186
183 - (id)copyWithZone:(NSZone*)zone { 187 - (id)copyWithZone:(NSZone*)zone {
184 DCHECK([NSThread isMainThread]); 188 DCHECK([NSThread isMainThread]);
185 CRWSessionCertificatePolicyManager* copy = [[[self class] alloc] init]; 189 CRWSessionCertificatePolicyManager* copy = [[[self class] alloc] init];
186 copy->allowed_ = allowed_; 190 copy->allowed_ = allowed_;
187 return copy; 191 return copy;
188 } 192 }
189 193
190 @end 194 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698