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

Side by Side Diff: net/base/x509_certificate_net_log_param.h

Issue 10066045: RefCounted types should not have public destructors, net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_X509_CERT_NET_LOG_PARAM_H_ 5 #ifndef NET_BASE_X509_CERT_NET_LOG_PARAM_H_
6 #define NET_BASE_X509_CERT_NET_LOG_PARAM_H_ 6 #define NET_BASE_X509_CERT_NET_LOG_PARAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "net/base/net_log.h" 13 #include "net/base/net_log.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class X509Certificate; 17 class X509Certificate;
18 18
19 // NetLog parameter to describe an X509Certificate. 19 // NetLog parameter to describe an X509Certificate.
20 // Note: These parameters are memory intensive, due to PEM-encoding each 20 // Note: These parameters are memory intensive, due to PEM-encoding each
21 // certificate, thus should only be used when logging at NetLog::LOG_ALL. 21 // certificate, thus should only be used when logging at NetLog::LOG_ALL.
22 class X509CertificateNetLogParam : public NetLog::EventParameters { 22 class X509CertificateNetLogParam : public NetLog::EventParameters {
23 public: 23 public:
24 explicit X509CertificateNetLogParam(X509Certificate* certificate); 24 explicit X509CertificateNetLogParam(X509Certificate* certificate);
25 virtual ~X509CertificateNetLogParam();
26 25
27 virtual base::Value* ToValue() const OVERRIDE; 26 virtual base::Value* ToValue() const OVERRIDE;
28 27
29 private: 28 private:
29 virtual ~X509CertificateNetLogParam();
30
30 std::vector<std::string> encoded_chain_; 31 std::vector<std::string> encoded_chain_;
31 }; 32 };
32 33
33 } // namespace net 34 } // namespace net
34 35
35 #endif // NET_BASE_X509_CERT_NET_LOG_PARAM_H_ 36 #endif // NET_BASE_X509_CERT_NET_LOG_PARAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698