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

Unified Diff: content/browser/ssl/ssl_manager.h

Issue 1459473003: Add a WebContents getter callback in ResourceRequestInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Nasko's comment Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/ssl/ssl_error_handler.cc ('k') | content/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_manager.h
diff --git a/content/browser/ssl/ssl_manager.h b/content/browser/ssl/ssl_manager.h
index 8128ee8e0491b2b2bce3ede602ddd4848781ba6d..6e4670513a6cb5ea8258c7970d577831777a9399 100644
--- a/content/browser/ssl/ssl_manager.h
+++ b/content/browser/ssl/ssl_manager.h
@@ -52,6 +52,16 @@ class CONTENT_EXPORT SSLManager {
const base::WeakPtr<SSLErrorHandler::Delegate>& delegate,
ResourceType resource_type,
const GURL& url,
+ const base::Callback<WebContents*(void)>& web_contents_getter,
+ const net::SSLInfo& ssl_info,
+ bool fatal);
+
+ // Same as the above, and only works for subresources. Prefer using
+ // OnSSLCertificateError whenever possible (ie when you have access to the
+ // WebContents).
+ static void OnSSLCertificateSubresourceError(
+ const base::WeakPtr<SSLErrorHandler::Delegate>& delegate,
+ const GURL& url,
int render_process_id,
int render_frame_id,
const net::SSLInfo& ssl_info,
« no previous file with comments | « content/browser/ssl/ssl_error_handler.cc ('k') | content/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698