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

Side by Side Diff: ios/chrome/browser/ssl/ios_ssl_error_handler.h

Issue 2108783005: [ios] Implemented iOS analogue of SSLErrorHandler class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments Created 4 years, 5 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 | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/ssl/ios_ssl_error_handler.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_SSL_IOS_SSL_ERROR_HANDLER_H_
6 #define IOS_CHROME_BROWSER_SSL_IOS_SSL_ERROR_HANDLER_H_
7
8 #include "base/callback_forward.h"
9 #include "url/gurl.h"
10
11 namespace net {
12 class SSLInfo;
13 } // namespace net
14
15 namespace web {
16 class WebState;
17 } // namespace web
18
19 // This class is responsible for deciding what type of interstitial to show for
20 // an SSL validation error.
21 class IOSSSLErrorHandler {
22 public:
23 // Entry point for the class.
24 static void HandleSSLError(web::WebState* web_state,
25 int cert_error,
26 const net::SSLInfo& info,
27 const GURL& request_url,
28 bool overridable,
29 const base::Callback<void(bool)>& callback);
30
31 private:
32 ~IOSSSLErrorHandler() = delete;
33 // Called on SSL interstitial dismissal.
34 static void InterstitialWasDismissed(
35 web::WebState* web_state,
36 const base::Callback<void(bool)>& callback,
37 bool proceed);
38 DISALLOW_IMPLICIT_CONSTRUCTORS(IOSSSLErrorHandler);
39 };
40
41 #endif // IOS_CHROME_BROWSER_SSL_IOS_SSL_ERROR_HANDLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/ssl/ios_ssl_error_handler.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698