| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/thread.h" | 6 #include "base/thread.h" |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/io_thread.h" | 8 #include "chrome/browser/io_thread.h" |
| 9 #include "chrome/browser/net/ssl_config_service_manager.h" | 9 #include "chrome/browser/net/ssl_config_service_manager.h" |
| 10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
| 11 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/common/notification_service.h" | 13 #include "chrome/common/notification_details.h" |
| 14 #include "chrome/common/notification_source.h" |
| 15 #include "chrome/common/notification_type.h" |
| 14 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 15 #include "net/base/ssl_config_service.h" | 17 #include "net/base/ssl_config_service.h" |
| 16 | 18 |
| 17 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
| 18 // SSLConfigServicePref | 20 // SSLConfigServicePref |
| 19 | 21 |
| 20 // An SSLConfigService which stores a cached version of the current SSLConfig | 22 // An SSLConfigService which stores a cached version of the current SSLConfig |
| 21 // prefs, which are updated by SSLConfigServiceManagerPref when the prefs | 23 // prefs, which are updated by SSLConfigServiceManagerPref when the prefs |
| 22 // change. | 24 // change. |
| 23 class SSLConfigServicePref : public net::SSLConfigService { | 25 class SSLConfigServicePref : public net::SSLConfigService { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 } | 148 } |
| 147 | 149 |
| 148 //////////////////////////////////////////////////////////////////////////////// | 150 //////////////////////////////////////////////////////////////////////////////// |
| 149 // SSLConfigServiceManager | 151 // SSLConfigServiceManager |
| 150 | 152 |
| 151 // static | 153 // static |
| 152 SSLConfigServiceManager* SSLConfigServiceManager::CreateDefaultManager( | 154 SSLConfigServiceManager* SSLConfigServiceManager::CreateDefaultManager( |
| 153 Profile* profile) { | 155 Profile* profile) { |
| 154 return new SSLConfigServiceManagerPref(profile); | 156 return new SSLConfigServiceManagerPref(profile); |
| 155 } | 157 } |
| OLD | NEW |