OLD | NEW |
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 #include "chrome/browser/net/http_server_properties_manager.h" | 4 #include "chrome/browser/net/http_server_properties_manager.h" |
5 | 5 |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/prefs/pref_service.h" | 9 #include "chrome/browser/prefs/pref_service.h" |
10 #include "chrome/common/chrome_notification_types.h" | 10 #include "chrome/common/chrome_notification_types.h" |
11 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/browser/notification_details.h" | 13 #include "content/public/browser/notification_details.h" |
14 #include "content/public/browser/notification_source.h" | 14 #include "content/public/browser/notification_source.h" |
15 | 15 |
| 16 using content::BrowserThread; |
| 17 |
16 namespace chrome_browser_net { | 18 namespace chrome_browser_net { |
17 | 19 |
18 namespace { | 20 namespace { |
19 | 21 |
20 // Time to wait before starting an update the spdy_servers_table_ cache from | 22 // Time to wait before starting an update the spdy_servers_table_ cache from |
21 // preferences. Scheduling another update during this period will reset the | 23 // preferences. Scheduling another update during this period will reset the |
22 // timer. | 24 // timer. |
23 const int64 kUpdateCacheDelayMs = 1000; | 25 const int64 kUpdateCacheDelayMs = 1000; |
24 | 26 |
25 // Time to wait before starting an update the preferences from the | 27 // Time to wait before starting an update the preferences from the |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 ScheduleUpdateSpdyCacheOnUI(); | 437 ScheduleUpdateSpdyCacheOnUI(); |
436 } else if (*pref_name == prefs::kAlternateProtocolServers) { | 438 } else if (*pref_name == prefs::kAlternateProtocolServers) { |
437 if (!setting_alternate_protocol_servers_) | 439 if (!setting_alternate_protocol_servers_) |
438 ScheduleUpdateAlternateProtocolCacheOnUI(); | 440 ScheduleUpdateAlternateProtocolCacheOnUI(); |
439 } else { | 441 } else { |
440 NOTREACHED(); | 442 NOTREACHED(); |
441 } | 443 } |
442 } | 444 } |
443 | 445 |
444 } // namespace chrome_browser_net | 446 } // namespace chrome_browser_net |
OLD | NEW |