diff options
Diffstat (limited to 'chrome/browser/ssl/ssl_add_cert_handler.h')
-rw-r--r-- | chrome/browser/ssl/ssl_add_cert_handler.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/chrome/browser/ssl/ssl_add_cert_handler.h b/chrome/browser/ssl/ssl_add_cert_handler.h index 0e3d8b0..3b33403 100644 --- a/chrome/browser/ssl/ssl_add_cert_handler.h +++ b/chrome/browser/ssl/ssl_add_cert_handler.h @@ -21,10 +21,13 @@ class URLRequest; // It is self-owned and deletes itself when finished. class SSLAddCertHandler : public base::RefCountedThreadSafe<SSLAddCertHandler> { public: - SSLAddCertHandler(URLRequest* request, net::X509Certificate* cert); + SSLAddCertHandler(URLRequest* request, net::X509Certificate* cert, + int render_process_host_id, int render_view_id); net::X509Certificate* cert() { return cert_; } + int network_request_id() const { return network_request_id_; } + // The platform-specific code calls this when it's done, to clean up. // If |addCert| is true, the cert will be added to the CertDatabase. void Finished(bool add_cert); @@ -32,19 +35,23 @@ class SSLAddCertHandler : public base::RefCountedThreadSafe<SSLAddCertHandler> { private: friend class base::RefCountedThreadSafe<SSLAddCertHandler>; - // Runs the user interface. Called on the UI thread. Calls AskToAddCert. - void RunUI(); + // Runs the handler. Called on the IO thread. + void Run(); // Platform-specific code that asks the user whether to add the cert. // Called on the UI thread. void AskToAddCert(); - // Utility to display an error message in a dialog box. - void ShowError(const string16& error); - // The cert to add. scoped_refptr<net::X509Certificate> cert_; + // The id of the request which started the process. + int network_request_id_; + // The id of the |RenderProcessHost| which started the download. + int render_process_host_id_; + // The id of the |RenderView| which started the download. + int render_view_id_; + DISALLOW_COPY_AND_ASSIGN(SSLAddCertHandler); }; |