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

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

Issue 2222003002: Combine SSLCertErrorHandler and SSLErrorHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/ssl/ssl_cert_error_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_cert_error_handler.h
diff --git a/content/browser/ssl/ssl_cert_error_handler.h b/content/browser/ssl/ssl_cert_error_handler.h
deleted file mode 100644
index e5d098b333d3cb6db27cc1dfa983761b67cd3546..0000000000000000000000000000000000000000
--- a/content/browser/ssl/ssl_cert_error_handler.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_
-#define CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "content/browser/ssl/ssl_error_handler.h"
-#include "net/ssl/ssl_info.h"
-
-namespace content {
-
-// A CertError represents an error that occurred with the certificate in an
-// SSL session. A CertError object exists both on the IO thread and on the UI
-// thread and allows us to cancel/continue a request it is associated with.
-class SSLCertErrorHandler : public SSLErrorHandler {
- public:
- // Construct on the IO thread.
- SSLCertErrorHandler(const base::WeakPtr<Delegate>& delegate,
- ResourceType resource_type,
- const GURL& url,
- const net::SSLInfo& ssl_info,
- bool fatal);
-
- SSLCertErrorHandler* AsSSLCertErrorHandler() override;
-
- // These accessors are available on either thread
- const net::SSLInfo& ssl_info() const { return ssl_info_; }
- int cert_error() const { return cert_error_; }
- bool fatal() const { return fatal_; }
-
- protected:
- // SSLErrorHandler methods
- void OnDispatchFailed() override;
- void OnDispatched() override;
-
- private:
- ~SSLCertErrorHandler() override;
-
- // These read-only members may be accessed on any thread.
- const net::SSLInfo ssl_info_;
- const int cert_error_; // The error we represent.
- const bool fatal_; // True if the error is from a host requiring
- // certificate errors to be fatal.
-
- DISALLOW_COPY_AND_ASSIGN(SSLCertErrorHandler);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_
« no previous file with comments | « no previous file | content/browser/ssl/ssl_cert_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698