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

Side by Side Diff: chrome/browser/net/ssl_config_service_manager.h

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_
6 #define CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_ 6 #define CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_
7 7
8 namespace net { 8 namespace net {
9 class SSLConfigService; 9 class SSLConfigService;
10 } // namespace net 10 } // namespace net
11 11
12 class PrefService; 12 class PrefService;
13 class PrefServiceSimple; 13 class PrefRegistrySimple;
14 14
15 // An interface for creating SSLConfigService objects. 15 // An interface for creating SSLConfigService objects.
16 class SSLConfigServiceManager { 16 class SSLConfigServiceManager {
17 public: 17 public:
18 // Create an instance of the SSLConfigServiceManager. The lifetime of the 18 // Create an instance of the SSLConfigServiceManager. The lifetime of the
19 // PrefService objects must be longer than that of the manager. Get SSL 19 // PrefService objects must be longer than that of the manager. Get SSL
20 // preferences from local_state object. The user_prefs may be NULL if this 20 // preferences from local_state object. The user_prefs may be NULL if this
21 // SSLConfigServiceManager is not associated with a profile. 21 // SSLConfigServiceManager is not associated with a profile.
22 static SSLConfigServiceManager* CreateDefaultManager( 22 static SSLConfigServiceManager* CreateDefaultManager(
23 PrefService* local_state, 23 PrefService* local_state,
24 PrefService* user_prefs); 24 PrefService* user_prefs);
25 25
26 static void RegisterPrefs(PrefServiceSimple* local_state); 26 static void RegisterPrefs(PrefRegistrySimple* registry);
27 27
28 virtual ~SSLConfigServiceManager() {} 28 virtual ~SSLConfigServiceManager() {}
29 29
30 // Get an SSLConfigService instance. It may be a new instance or the manager 30 // Get an SSLConfigService instance. It may be a new instance or the manager
31 // may return the same instance multiple times. 31 // may return the same instance multiple times.
32 // The caller should hold a reference as long as it needs the instance (eg, 32 // The caller should hold a reference as long as it needs the instance (eg,
33 // using scoped_refptr.) 33 // using scoped_refptr.)
34 virtual net::SSLConfigService* Get() = 0; 34 virtual net::SSLConfigService* Get() = 0;
35 }; 35 };
36 36
37 #endif // CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_ 37 #endif // CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc ('k') | chrome/browser/net/ssl_config_service_manager_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698