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

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

Issue 10534117: Fix NetLog thread safety issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update text 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 "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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698