Chromium Code Reviews| 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 "net/base/net_log.h" | 9 #include "net/base/net_log.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 class X509Certificate; | 13 class X509Certificate; |
| 14 | 14 |
| 15 // Creates NetLog parameter to describe an X509Certificate. | 15 // Creates a NetLog callback that returns a Value describing an X509Certificate. |
| 16 base::Value* NetLogX509CertificateCallback( | 16 // The callback holds on to a reference to the certificate, which must not be |
| 17 const X509Certificate* certificate, | 17 // modified until the callback is destroyed. |
| 18 NetLog::LogLevel log_level); | 18 NetLog::ParametersCallback CreateNetLogX509CertificateCallback( |
| 19 scoped_refptr<const X509Certificate> certificate); | |
|
Ryan Sleevi
2012/06/12 20:22:09
const scoped_refptr<>&
Only scoped_ptr<>'s should
| |
| 19 | 20 |
| 20 } // namespace net | 21 } // namespace net |
| 21 | 22 |
| 22 #endif // NET_BASE_X509_CERT_NET_LOG_PARAM_H_ | 23 #endif // NET_BASE_X509_CERT_NET_LOG_PARAM_H_ |
| OLD | NEW |