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

Unified Diff: net/base/ssl_info.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | « net/base/ssl_info.h ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_info.cc
diff --git a/net/base/ssl_info.cc b/net/base/ssl_info.cc
deleted file mode 100644
index 05882d31e7d113af8b7174823096ce89dadc4059..0000000000000000000000000000000000000000
--- a/net/base/ssl_info.cc
+++ /dev/null
@@ -1,54 +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.
-
-#include "net/base/ssl_info.h"
-
-#include "net/base/cert_status_flags.h"
-#include "net/base/x509_certificate.h"
-
-namespace net {
-
-SSLInfo::SSLInfo() {
- Reset();
-}
-
-SSLInfo::SSLInfo(const SSLInfo& info) {
- *this = info;
-}
-
-SSLInfo::~SSLInfo() {
-}
-
-SSLInfo& SSLInfo::operator=(const SSLInfo& info) {
- cert = info.cert;
- cert_status = info.cert_status;
- security_bits = info.security_bits;
- connection_status = info.connection_status;
- is_issued_by_known_root = info.is_issued_by_known_root;
- client_cert_sent = info.client_cert_sent;
- channel_id_sent = info.channel_id_sent;
- handshake_type = info.handshake_type;
- public_key_hashes = info.public_key_hashes;
-
- return *this;
-}
-
-void SSLInfo::Reset() {
- cert = NULL;
- cert_status = 0;
- security_bits = -1;
- connection_status = 0;
- is_issued_by_known_root = false;
- client_cert_sent = false;
- channel_id_sent = false;
- handshake_type = HANDSHAKE_UNKNOWN;
-
- public_key_hashes.clear();
-}
-
-void SSLInfo::SetCertError(int error) {
- cert_status |= MapNetErrorToCertStatus(error);
-}
-
-} // namespace net
« no previous file with comments | « net/base/ssl_info.h ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698