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

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

Issue 10539094: NetLogEventParameter to Callback refactoring 1, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add comment Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/memory/ref_counted.h"
eroman 2012/06/12 05:17:26 nit: don't need this anymore
mmenke 2012/06/12 14:52:36 Done.
10 #include <vector>
11
12 #include "base/compiler_specific.h"
13 #include "net/base/net_log.h" 10 #include "net/base/net_log.h"
14 11
15 namespace net { 12 namespace net {
16 13
17 class X509Certificate; 14 class X509Certificate;
18 15
19 // NetLog parameter to describe an X509Certificate. 16 // Creates NetLog parameter to describe an X509Certificate.
20 // Note: These parameters are memory intensive, due to PEM-encoding each 17 // These parameters are memory intensive, due to PEM-encoding each certificate.
eroman 2012/06/12 05:17:26 nit: maybe just delete this comment alltogether (n
mmenke 2012/06/12 14:52:36 Done.
21 // certificate, thus should only be used when logging at NetLog::LOG_ALL. 18 base::Value* NetLogX509CertificateCallback(
22 class X509CertificateNetLogParam : public NetLog::EventParameters { 19 const X509Certificate* certificate,
23 public: 20 NetLog::LogLevel log_level);
24 explicit X509CertificateNetLogParam(X509Certificate* certificate);
25
26 virtual base::Value* ToValue() const OVERRIDE;
27
28 protected:
29 virtual ~X509CertificateNetLogParam();
30
31 private:
32 std::vector<std::string> encoded_chain_;
33 };
34 21
35 } // namespace net 22 } // namespace net
36 23
37 #endif // NET_BASE_X509_CERT_NET_LOG_PARAM_H_ 24 #endif // NET_BASE_X509_CERT_NET_LOG_PARAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698