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

Side by Side Diff: ios/web/web_state/wk_web_view_ssl_error_util.h

Issue 988383002: Upstream various ios/web utilities and helpers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-public-upstreaming
Patch Set: Created 5 years, 9 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_WEB_STATE_WK_WEB_VIEW_SSL_ERROR_UTIL_H_
6 #define IOS_WEB_WEB_STATE_WK_WEB_VIEW_SSL_ERROR_UTIL_H_
7
8 #import <Foundation/Foundation.h>
9
10 namespace net {
11 class SSLInfo;
12 }
13
14 namespace web {
15
16 // NSErrorPeerCertificateChainKey from NSError's userInfo dict.
17 extern NSString* const kNSErrorPeerCertificateChainKey;
18
19 // Returns YES if geven error is a SSL error.
20 BOOL IsWKWebViewSSLError(NSError* error);
21
22 // Fills SSLInfo object with information extracted from |error|. Callers are
23 // responsible to ensure that given |error| is an SSL error by calling
24 // |web::IsSSLError| function.
25 void GetSSLInfoFromWKWebViewSSLError(NSError* error, net::SSLInfo* ssl_info);
26
27 } // namespace web
28
29 #endif // IOS_WEB_WEB_STATE_WK_WEB_VIEW_SSL_ERROR_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698