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 "net/base/ssl_config_service_win.h" | 5 #include "net/base/ssl_config_service_win.h" |
6 | 6 |
7 #include "base/registry.h" | 7 #include "base/win/registry.h" |
8 | 8 |
9 using base::TimeDelta; | 9 using base::TimeDelta; |
10 using base::TimeTicks; | 10 using base::TimeTicks; |
| 11 using base::win::RegKey; |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 | 14 |
14 static const int kConfigUpdateInterval = 10; // seconds | 15 static const int kConfigUpdateInterval = 10; // seconds |
15 | 16 |
16 static const wchar_t kInternetSettingsSubKeyName[] = | 17 static const wchar_t kInternetSettingsSubKeyName[] = |
17 L"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"; | 18 L"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"; |
18 | 19 |
19 static const wchar_t kRevocationValueName[] = L"CertificateRevocation"; | 20 static const wchar_t kRevocationValueName[] = L"CertificateRevocation"; |
20 | 21 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void SSLConfigServiceWin::UpdateConfig(TimeTicks now) { | 125 void SSLConfigServiceWin::UpdateConfig(TimeTicks now) { |
125 SSLConfig orig_config = config_info_; | 126 SSLConfig orig_config = config_info_; |
126 GetSSLConfigNow(&config_info_); | 127 GetSSLConfigNow(&config_info_); |
127 if (ever_updated_) | 128 if (ever_updated_) |
128 ProcessConfigUpdate(orig_config, config_info_); | 129 ProcessConfigUpdate(orig_config, config_info_); |
129 config_time_ = now; | 130 config_time_ = now; |
130 ever_updated_ = true; | 131 ever_updated_ = true; |
131 } | 132 } |
132 | 133 |
133 } // namespace net | 134 } // namespace net |
OLD | NEW |