OLD | NEW |
---|---|
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" |
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. |
mmenke
2012/06/11 22:24:36
I kept this file because of the frequency of X509C
eroman
2012/06/11 23:42:25
I'm happy keeping things in place during refactor.
| |
21 // certificate, thus should only be used when logging at NetLog::LOG_ALL. | 18 base::Value* NetLogX509CertificateNetLogCallback( |
mmenke
2012/06/11 22:24:36
Since we weren't actually doing this, I went ahead
|
eroman
2012/06/11 23:42:25
nit: The naming include NetLog twice, seems redund
mmenke
2012/06/12 00:42:19
You sure? I was thinking about adding it a 3rd ti
|
22 class X509CertificateNetLogParam : public NetLog::EventParameters { | 19 scoped_refptr<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_ |
OLD | NEW |