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

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

Issue 1459473003: Add a WebContents getter callback in ResourceRequestInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/browser/ssl/ssl_error_handler.h
diff --git a/content/browser/ssl/ssl_error_handler.h b/content/browser/ssl/ssl_error_handler.h
index 26fc147c3f4e8d465661b152d4674dfef0d4f39b..7f9f68ea812dbe86b5c88c5c4d7a6d7931e5da93 100644
--- a/content/browser/ssl/ssl_error_handler.h
+++ b/content/browser/ssl/ssl_error_handler.h
@@ -12,6 +12,7 @@
#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
#include "content/public/browser/global_request_id.h"
+#include "content/public/browser/resource_request_info.h"
#include "content/public/common/resource_type.h"
#include "url/gurl.h"
@@ -96,18 +97,20 @@ class SSLErrorHandler : public base::RefCountedThreadSafe<SSLErrorHandler> {
// call this.
void TakeNoAction();
- int render_process_id() const { return render_process_id_; }
- int render_frame_id() const { return render_frame_id_; }
+ const ResourceRequestInfo::WebContentsGetterOnUI& web_contents_getter()
+ const {
+ return web_contents_getter_;
+ }
protected:
friend class base::RefCountedThreadSafe<SSLErrorHandler>;
// Construct on the IO thread.
davidben 2015/11/19 17:46:13 Really we should make this class UI thread only. (
clamy 2015/11/20 13:50:42 Done.
- SSLErrorHandler(const base::WeakPtr<Delegate>& delegate,
- ResourceType resource_type,
- const GURL& url,
- int render_process_id,
- int render_frame_id);
+ SSLErrorHandler(
+ const base::WeakPtr<Delegate>& delegate,
+ ResourceType resource_type,
+ const GURL& url,
+ const ResourceRequestInfo::WebContentsGetterOnUI& web_contents_getter);
virtual ~SSLErrorHandler();
@@ -137,10 +140,9 @@ class SSLErrorHandler : public base::RefCountedThreadSafe<SSLErrorHandler> {
// Call on the IO thread.
void CompleteTakeNoAction();
- // We use these members to find the correct SSLManager when we arrive on
- // the UI thread.
- int render_process_id_;
- int render_frame_id_;
+ // We use this member to find the correct SSLManager when we arrive on the UI
+ // thread.
+ ResourceRequestInfo::WebContentsGetterOnUI web_contents_getter_;
// The URL that we requested.
// This read-only member can be accessed on any thread.

Powered by Google App Engine
This is Rietveld 408576698