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

Unified Diff: chrome/browser/ssl/ssl_add_cert_handler.h

Issue 302653006: Remove use of ResourceRequestInfo::GetRequestID from cert enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ssl/ssl_add_cert_handler.h
diff --git a/chrome/browser/ssl/ssl_add_cert_handler.h b/chrome/browser/ssl/ssl_add_cert_handler.h
deleted file mode 100644
index 16320fdd3ceb46b9c91039c2ec8675068fb543e0..0000000000000000000000000000000000000000
--- a/chrome/browser/ssl/ssl_add_cert_handler.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_SSL_SSL_ADD_CERT_HANDLER_H_
-#define CHROME_BROWSER_SSL_SSL_ADD_CERT_HANDLER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-
-namespace net {
-class URLRequest;
-class X509Certificate;
-}
-
-// This class handles adding a newly-generated client cert. It ensures there's a
-// private key for the cert, displays the cert to the user, and adds it upon
-// user approval.
-// It is self-owned and deletes itself when finished.
-class SSLAddCertHandler : public base::RefCountedThreadSafe<SSLAddCertHandler> {
- public:
- SSLAddCertHandler(net::URLRequest* request, net::X509Certificate* cert,
- int render_process_host_id, int render_view_id);
-
- net::X509Certificate* cert() { return cert_.get(); }
-
- 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);
-
- private:
- friend class base::RefCountedThreadSafe<SSLAddCertHandler>;
- virtual ~SSLAddCertHandler();
-
- // 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();
-
- // Methods called on the UI thread to call the SSL helper.
- void CallVerifyClientCertificateError(int cert_error);
- void CallAddClientCertificate(bool add_cert, int cert_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);
-};
-
-#endif // CHROME_BROWSER_SSL_SSL_ADD_CERT_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698