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

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

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_SSL_CONFIG_SERVICE_H_ 5 #ifndef NET_BASE_SSL_CONFIG_SERVICE_H_
6 #define NET_BASE_SSL_CONFIG_SERVICE_H_ 6 #define NET_BASE_SSL_CONFIG_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 scoped_refptr<X509Certificate> client_cert; 60 scoped_refptr<X509Certificate> client_cert;
61 }; 61 };
62 62
63 // The interface for retrieving the SSL configuration. This interface 63 // The interface for retrieving the SSL configuration. This interface
64 // does not cover setting the SSL configuration, as on some systems, the 64 // does not cover setting the SSL configuration, as on some systems, the
65 // SSLConfigService objects may not have direct access to the configuration, or 65 // SSLConfigService objects may not have direct access to the configuration, or
66 // live longer than the configuration preferences. 66 // live longer than the configuration preferences.
67 class SSLConfigService : public base::RefCountedThreadSafe<SSLConfigService> { 67 class SSLConfigService : public base::RefCountedThreadSafe<SSLConfigService> {
68 public: 68 public:
69 virtual ~SSLConfigService() {}
70
71 // Create an instance of SSLConfigService which retrieves the configuration 69 // Create an instance of SSLConfigService which retrieves the configuration
72 // from the system SSL configuration, or an instance of 70 // from the system SSL configuration, or an instance of
73 // SSLConfigServiceDefaults if the current system does not have a system SSL 71 // SSLConfigServiceDefaults if the current system does not have a system SSL
74 // configuration. Note: this does not handle SSLConfigService implementations 72 // configuration. Note: this does not handle SSLConfigService implementations
75 // that are not native to their platform, such as preference-backed ones. 73 // that are not native to their platform, such as preference-backed ones.
76 static SSLConfigService* CreateSystemSSLConfigService(); 74 static SSLConfigService* CreateSystemSSLConfigService();
77 75
78 // May not be thread-safe, should only be called on the IO thread. 76 // May not be thread-safe, should only be called on the IO thread.
79 virtual void GetSSLConfig(SSLConfig* config) = 0; 77 virtual void GetSSLConfig(SSLConfig* config) = 0;
78
79 protected:
80 friend class base::RefCountedThreadSafe<SSLConfigService>;
81
82 virtual ~SSLConfigService() {}
80 }; 83 };
81 84
82 } // namespace net 85 } // namespace net
83 86
84 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_ 87 #endif // NET_BASE_SSL_CONFIG_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698