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/thread_restrictions.h" | 7 #include "base/threading/thread_restrictions.h" |
8 #include "base/win/registry.h" | 8 #include "base/win/registry.h" |
9 | 9 |
10 using base::TimeDelta; | 10 using base::TimeDelta; |
11 using base::TimeTicks; | 11 using base::TimeTicks; |
12 using base::win::RegKey; | 12 using base::win::RegKey; |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 static const int kConfigUpdateInterval = 10; // seconds | 16 static const int kConfigUpdateInterval = 10; // seconds |
17 | 17 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 void SSLConfigServiceWin::UpdateConfig(TimeTicks now) { | 135 void SSLConfigServiceWin::UpdateConfig(TimeTicks now) { |
136 SSLConfig orig_config = config_info_; | 136 SSLConfig orig_config = config_info_; |
137 GetSSLConfigNow(&config_info_); | 137 GetSSLConfigNow(&config_info_); |
138 if (ever_updated_) | 138 if (ever_updated_) |
139 ProcessConfigUpdate(orig_config, config_info_); | 139 ProcessConfigUpdate(orig_config, config_info_); |
140 config_time_ = now; | 140 config_time_ = now; |
141 ever_updated_ = true; | 141 ever_updated_ = true; |
142 } | 142 } |
143 | 143 |
144 } // namespace net | 144 } // namespace net |
OLD | NEW |