From 6e7845aed4759ab35d722ce0551b5a90d21e7640 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Fri, 29 Mar 2013 21:48:11 +0000 Subject: net: extract net/cert out of net/base This introduces the following dependency of net/base on things outside: net/base/openssl_client_key_store.cc:#include "net/cert/x509_certificate.h" BUG=70818 Review URL: https://codereview.chromium.org/13006020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191450 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/x509_certificate_net_log_param.cc | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 net/base/x509_certificate_net_log_param.cc (limited to 'net/base/x509_certificate_net_log_param.cc') diff --git a/net/base/x509_certificate_net_log_param.cc b/net/base/x509_certificate_net_log_param.cc deleted file mode 100644 index e3a7db9..0000000 --- a/net/base/x509_certificate_net_log_param.cc +++ /dev/null @@ -1,27 +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/x509_certificate_net_log_param.h" - -#include -#include - -#include "base/values.h" -#include "net/base/x509_certificate.h" - -namespace net { - -base::Value* NetLogX509CertificateCallback(const X509Certificate* certificate, - NetLog::LogLevel log_level) { - base::DictionaryValue* dict = new base::DictionaryValue(); - base::ListValue* certs = new base::ListValue(); - std::vector encoded_chain; - certificate->GetPEMEncodedChain(&encoded_chain); - for (size_t i = 0; i < encoded_chain.size(); ++i) - certs->Append(new base::StringValue(encoded_chain[i])); - dict->Set("certificates", certs); - return dict; -} - -} // namespace net -- cgit v1.1