|
|
Remove unnecessary |result| argument from AllowCertificateError()
ContentBrowserClient::AllowCertificateError() previously took a |result|
argument, which looks like it was basically a shortcut to save embedders
from having to call the callback. When an embedder set the |result|
argument, SSLPolicy would call the appropriate SSLCertErrorHandler
method to continue or cancel the request. If the embedder didn't set the
|result| argument, then the embedder was responsible for calling the
callback, which would in turn call the appropriate SSLCertErrorHandler
method.
This CL removes the |result| argument and changes the |callback|
argument from a bool to an enum so that the embedder has a little bit
more control over how the callback cancels the request.
In addition to being a general clean-up/simplification, this change
paves the way for making SSLErrorHandler not-refcounted. A follow-up CL
will make SSLErrorHandler live on the UI thread only, and
AllowCertificateError()'s |callback| will take ownership of the
SSLErrorHandler. (Right now, the SSLErrorHandler is shared between
SSLPolicy and the callback. Removing the |result| argument means that
SSLPolicy no longer needs to retain a reference to the SSLErrorHandler.)
BUG= 558491
Committed: https://crrev.com/719dde5b353db3cf9af7e030f79eb1bc4fb9b84b
Cr-Commit-Position: refs/heads/master@{#410560}
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+152 lines, -129 lines) |
Patch |
 |
M |
android_webview/browser/aw_content_browser_client.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/aw_content_browser_client.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/aw_contents_client_bridge_base.h
|
View
|
1
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/aw_contents_client_bridge.h
|
View
|
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/aw_contents_client_bridge.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_content_browser_client.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
1
2
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/bad_clock_blocking_page.h
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/bad_clock_blocking_page.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/captive_portal_blocking_page.h
|
View
|
|
3 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/captive_portal_blocking_page.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
|
View
|
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/ssl_blocking_page.h
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/ssl_blocking_page.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/ssl_browser_tests.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/ssl_error_handler.h
|
View
|
|
3 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/ssl_error_handler.cc
|
View
|
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/ssl_error_handler_unittest.cc
|
View
|
|
1 chunk |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
View
|
|
4 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chromecast/browser/cast_content_browser_client.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chromecast/browser/cast_content_browser_client.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/ssl/ssl_policy.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/ssl/ssl_policy.cc
|
View
|
|
2 chunks |
+25 lines, -35 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/content_browser_client.h
|
View
|
|
1 chunk |
+11 lines, -13 lines |
0 comments
|
Download
|
Total messages: 24 (13 generated)
|