OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "net/base/ssl_config_service.h" | 5 #include "net/base/ssl_config_service.h" |
6 | 6 |
7 #include "base/registry.h" | 7 #include "base/registry.h" |
8 | 8 |
| 9 using base::TimeDelta; |
| 10 using base::TimeTicks; |
| 11 |
9 namespace net { | 12 namespace net { |
10 | 13 |
11 static const int kConfigUpdateInterval = 10; // seconds | 14 static const int kConfigUpdateInterval = 10; // seconds |
12 | 15 |
13 static const wchar_t kInternetSettingsSubKeyName[] = | 16 static const wchar_t kInternetSettingsSubKeyName[] = |
14 L"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"; | 17 L"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"; |
15 | 18 |
16 static const wchar_t kRevocationValueName[] = L"CertificateRevocation"; | 19 static const wchar_t kRevocationValueName[] = L"CertificateRevocation"; |
17 | 20 |
18 static const wchar_t kProtocolsValueName[] = L"SecureProtocols"; | 21 static const wchar_t kProtocolsValueName[] = L"SecureProtocols"; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 internet_settings.WriteValue(kProtocolsValueName, value); | 99 internet_settings.WriteValue(kProtocolsValueName, value); |
97 } | 100 } |
98 | 101 |
99 void SSLConfigService::UpdateConfig(TimeTicks now) { | 102 void SSLConfigService::UpdateConfig(TimeTicks now) { |
100 GetSSLConfigNow(&config_info_); | 103 GetSSLConfigNow(&config_info_); |
101 config_time_ = now; | 104 config_time_ = now; |
102 } | 105 } |
103 | 106 |
104 } // namespace net | 107 } // namespace net |
105 | 108 |
OLD | NEW |