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

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: Remove unneeded line 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>
10 #include <vector>
11
12 #include "base/compiler_specific.h"
13 #include "net/base/net_log.h" 9 #include "net/base/net_log.h"
14 10
15 namespace net { 11 namespace net {
16 12
17 class X509Certificate; 13 class X509Certificate;
18 14
19 // NetLog parameter to describe an X509Certificate. 15 // Creates NetLog parameter to describe an X509Certificate.
20 // Note: These parameters are memory intensive, due to PEM-encoding each 16 base::Value* NetLogX509CertificateCallback(
21 // certificate, thus should only be used when logging at NetLog::LOG_ALL. 17 const X509Certificate* certificate,
22 class X509CertificateNetLogParam : public NetLog::EventParameters { 18 NetLog::LogLevel log_level);
23 public:
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 19
35 } // namespace net 20 } // namespace net
36 21
37 #endif // NET_BASE_X509_CERT_NET_LOG_PARAM_H_ 22 #endif // NET_BASE_X509_CERT_NET_LOG_PARAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698