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

Side by Side Diff: chrome/browser/ssl/ssl_error_handler.h

Issue 1294673005: Disable Name Mismatch redirection for non-overridable SSL errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Again Created 5 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
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ 5 #ifndef CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_
6 #define CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ 6 #define CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void OnTimerExpired(); 97 void OnTimerExpired();
98 98
99 // These are virtual for tests: 99 // These are virtual for tests:
100 virtual void CheckForCaptivePortal(); 100 virtual void CheckForCaptivePortal();
101 virtual void ShowCaptivePortalInterstitial(const GURL& landing_url); 101 virtual void ShowCaptivePortalInterstitial(const GURL& landing_url);
102 virtual void ShowSSLInterstitial(); 102 virtual void ShowSSLInterstitial();
103 virtual bool GetSuggestedUrl(const std::vector<std::string>& dns_names, 103 virtual bool GetSuggestedUrl(const std::vector<std::string>& dns_names,
104 GURL* suggested_url) const; 104 GURL* suggested_url) const;
105 virtual void CheckSuggestedUrl(const GURL& suggested_url); 105 virtual void CheckSuggestedUrl(const GURL& suggested_url);
106 virtual void NavigateToSuggestedURL(const GURL& suggested_url); 106 virtual void NavigateToSuggestedURL(const GURL& suggested_url);
107 virtual bool IsErrorOverridable() const;
107 108
108 // content::NotificationObserver: 109 // content::NotificationObserver:
109 void Observe( 110 void Observe(
110 int type, 111 int type,
111 const content::NotificationSource& source, 112 const content::NotificationSource& source,
112 const content::NotificationDetails& details) override; 113 const content::NotificationDetails& details) override;
113 114
114 // content::WebContentsObserver: 115 // content::WebContentsObserver:
115 void DidStartNavigationToPendingEntry( 116 void DidStartNavigationToPendingEntry(
116 const GURL& url, 117 const GURL& url,
(...skipping 18 matching lines...) Expand all
135 base::OneShotTimer<SSLErrorHandler> timer_; 136 base::OneShotTimer<SSLErrorHandler> timer_;
136 137
137 scoped_ptr<CommonNameMismatchHandler> common_name_mismatch_handler_; 138 scoped_ptr<CommonNameMismatchHandler> common_name_mismatch_handler_;
138 139
139 scoped_ptr<SSLCertReporter> ssl_cert_reporter_; 140 scoped_ptr<SSLCertReporter> ssl_cert_reporter_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); 142 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler);
142 }; 143 };
143 144
144 #endif // CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ 145 #endif // CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698