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

Side by Side Diff: ios/web/net/crw_ssl_status_updater.mm

Issue 2247303009: Converts ios/web/net to ARC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-web
Patch Set: Removes web_arc_transition temporary target 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/net/crw_ssl_status_updater.h" 5 #import "ios/web/net/crw_ssl_status_updater.h"
6 6
7 #import "base/ios/weak_nsobject.h" 7 #import "base/ios/weak_nsobject.h"
8 #import "base/mac/scoped_nsobject.h" 8 #import "base/mac/scoped_nsobject.h"
9 #import "base/strings/sys_string_conversions.h" 9 #import "base/strings/sys_string_conversions.h"
10 #include "ios/web/public/cert_store.h" 10 #include "ios/web/public/cert_store.h"
11 #import "ios/web/public/navigation_item.h" 11 #import "ios/web/public/navigation_item.h"
12 #import "ios/web/public/navigation_manager.h" 12 #import "ios/web/public/navigation_manager.h"
13 #include "ios/web/public/ssl_status.h" 13 #include "ios/web/public/ssl_status.h"
14 #import "ios/web/web_state/wk_web_view_security_util.h" 14 #import "ios/web/web_state/wk_web_view_security_util.h"
15 #include "net/cert/x509_certificate.h" 15 #include "net/cert/x509_certificate.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 #if !defined(__has_feature) || !__has_feature(objc_arc)
19 #error "This file requires ARC support."
20 #endif
21
18 using base::ScopedCFTypeRef; 22 using base::ScopedCFTypeRef;
19 using net::CertStatus; 23 using net::CertStatus;
20 using web::SecurityStyle; 24 using web::SecurityStyle;
21 25
22 @interface CRWSSLStatusUpdater () { 26 @interface CRWSSLStatusUpdater () {
23 // DataSource for CRWSSLStatusUpdater. 27 // DataSource for CRWSSLStatusUpdater.
24 base::WeakNSProtocol<id<CRWSSLStatusUpdaterDataSource>> _dataSource; 28 base::WeakNSProtocol<id<CRWSSLStatusUpdaterDataSource>> _dataSource;
25 // Backs up property of the same name. 29 // Backs up property of the same name.
26 base::WeakNSProtocol<id<CRWSSLStatusUpdaterDelegate>> _delegate; 30 base::WeakNSProtocol<id<CRWSSLStatusUpdaterDelegate>> _delegate;
27 } 31 }
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 193
190 - (void)didChangeSSLStatusForNavigationItem:(web::NavigationItem*)navItem { 194 - (void)didChangeSSLStatusForNavigationItem:(web::NavigationItem*)navItem {
191 if ([_delegate respondsToSelector: 195 if ([_delegate respondsToSelector:
192 @selector(SSLStatusUpdater:didChangeSSLStatusForNavigationItem:)]) { 196 @selector(SSLStatusUpdater:didChangeSSLStatusForNavigationItem:)]) {
193 [_delegate SSLStatusUpdater:self 197 [_delegate SSLStatusUpdater:self
194 didChangeSSLStatusForNavigationItem:navItem]; 198 didChangeSSLStatusForNavigationItem:navItem];
195 } 199 }
196 } 200 }
197 201
198 @end 202 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698